如何让别人看不到内容? 即使是root

sh/bash/dash/ksh/zsh等Shell脚本
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: 如何让别人看不到内容? 即使是root

#16

帖子 543082593 » 2009-10-11 19:05

tusooa 写了:原理比较简单的方法:

代码: 全选

#include <stdio.h>
int main(void)
{
system("shell script");
return 0;
}
然后

代码: 全选

gcc main.c -o script
main.c改源文件名字(C)
script改输出文件名字
真的这个方法很好 :em05 :em05
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: 如何让别人看不到内容? 即使是root

#17

帖子 tusooa » 2009-10-11 19:53

代码: 全选

The Last Command is Success
11/10/2009 19:55:03
tusooa (~) 
>> cat > test.c << '!FUNKY!'
> #include <stdio.h>
> 
> int main(void)
> {
>     system("ls");
>     return 0;
> }
> 
> !FUNKY!
The Last Command is Success
11/10/2009 19:56:05
tusooa (~) 
>> cc test.c
The Last Command is Success
11/10/2009 19:56:11
tusooa (~) 
>> ./a.out 
a.out	       develop	  lfslivecd-x86-6.3-r2052.iso  lzo2_2.03.orig.tar.gz  pyout.txt      quine.ruby			test	    tst.qml	   version-check.sh    模板
bin	       Documents  localeout		       my		      python-lib     quine.ruby~		test.c	    tst.qml~	   wget-list	       视频
debpkgs        Downloads  logs			       Myweb		      pythonout.txt  screen-configurations.xml	test.sh     tst.txt	   zhpy_syntax.tar.gz  图片
debpkgs-build  empty.f	  lzo2-2.03		       php_includes	      python.xml     sn.bash~			test-shell  tusooa-os	   zhpy.xml	       文档
del	       kde	  lzo2_2.03-1.diff.gz	       Pictures		      qemu	     src			tst.2.txt   ubuntu	   zhpy.xml~	       音乐
Desktop        kde-my	  lzo2_2.03-1.dsc	       pyerr.txt	      qt	     svndw			tst2.txt    ubuntu_source  公共的
The Last Command is Success
11/10/2009 19:56:15
tusooa (~) 
>> 

代码: 全选

] ls -ld //
头像
543082593
帖子: 234
注册时间: 2008-11-07 8:41

Re: 如何让别人看不到内容? 即使是root

#18

帖子 543082593 » 2009-10-13 13:02

用gpg 为文件加密
具体用法
http://blog.163.com/yunyueyang_2007/blo ... 104833203/
呵呵 这也是我从别人那转的 :em03
fall again
smooth criminal
they don't care about us
billie jean
beat it
dangerous
the lost children
childhood
ben
i will be there
speechless
she is out of my life
rock with you
...
LOVE U FOREVER
leafei
帖子: 84
注册时间: 2008-06-29 21:41

Re: 如何让别人看不到内容? 即使是root

#19

帖子 leafei » 2009-10-17 9:13

可以在vim命令模式下输入:

代码: 全选

:X
X大写
输入key后,写入文件

代码: 全选

:w
输入:

代码: 全选

:set key=
取消密码。

很方便。
yetist
帖子: 37
注册时间: 2007-02-02 0:11

Re: 如何让别人看不到内容? 即使是root

#20

帖子 yetist » 2009-10-22 13:02

可以试试shc, 编译sh脚本的东西。
回复