2006年07月04日

最近对访问速度有种变态的追求心理,所以看了下linux下的socks5代理和pptpd搭建VPN的方法

 

socks5就简单了,分别可以用rpm和编译源代码来安装

 

socks5-1.0r11-3.i386.rpm

socks5-v1.0r11.patched.tar.gz

 

两种方法都要注意/etc/socks5.conf 这个文件是要自己写的,不过很简单

 

然后启动

 

socks5 -b 1999 -t

 

其中1999是端口

 

安装pptpd 的VPN就复杂多了

 

linux默认是不支持的,幸好国外有人做为一个项目来开发,需要加一个内核模块

在redhat下比较简单

 

需要这几个RPM包

 dkms-2.0.10-1.noarch.rpm

kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm

ppp-2.4.3-5.rhl9.i386.rpm

pptpd-1.3.0-0.i386.rpm

 

 

其中ppp包需要看系统版本,选择合适的那个,系统中一般都自己带了

 

具体配置方法,见google了

2006年06月29日

cong!

 

跟云舒那个痴情男做安全去了

 

等你来杭州培训,我一定好好k下你,哈哈!

2006年06月27日

我想哭,但哭不出来

不肯认输

从小妈妈就教我怎么做人,偏偏她却少教了我人生最重要的课之一—感情

 

所以这最重要的一课,我只有自己悟。

 

经历了那么多,浑身都是伤了。

 

发现自己的性格,虽然自诩“完美”了,但偏偏这种“完美”,有着重大的缺陷。

 

我可以冷静,可以睿智,自小各种赞美之辞就不曾少过

 

但偏偏却是无法得到女人的欢心

 

难道真的只有男人才懂得欣赏我吗?

 

离家的日子,也有7年了,一直漂泊在外,像那无根的草

 

心中的苦闷,又能与谁说?

 

有人说:20岁的男人总是被女人伤害,30岁的男人总是伤害女人

 

我本以为我会是例外,因为我相信凭着我的手,我取得的成绩,能够弥补那差距

 

但偏偏世人不这么看,难道我的努力就真的没人看到?

 

我不服气,我不信命运

 

但此刻,真的好无助。

 

如果真的有神肯拯救我,我愿意信仰他。

 

我心中所追求的“道”啊,一定要如此考验我吗?

 

以往的辛酸我都微笑面对,云淡风清

 

以后的路,我也不愿屈服

 

路,是人走出来的

 

世上的事,如梦幻泡影,如露亦如电

 

什么是真,什么是假,什么是对,什么是错?

 

放下负担,多点快乐,任后人评说。

 

好想对全世界宣布,我爱你啊!

A new class of attacks has been recently discovered that relies on the way the 2.6 Linux Kernel (2.4 does not do this) executes a setuid() call. If I hit my nproc limit (ulimit -u), then if root tried to setuid(myuid), the setuid() fails, returning a -1. There are a number of programs that aren’t checking the return value of setuid() calls, which causes the program in question to continue execution as root, even though it thinks it’s running as a normal user.

I’ve been spending the past few days to verify that these issues

http://lists.freedesktop.org/archives/xorg/2006-June/016146.html

are not exploitable on RHEL or Fedora Core. My analysis says they’re not. This was important since an X update is non trivial for RHEL and FC4 (it’s one big giant package). On FC5 an update wouldn’t be so bad since it’s just one small self contained package. I’ve learned a great deal about user limits and how they work in Linux.

User limits are not enforced by default. Children processes inherit them from the parent processes, which in most instances is fine. My initial testing was a simple suid root program that tried to setuid(), which never failed. I expected this to fail since I had a test user with a nproc hard limit of 2 processes, and the test user was logged in twice already. I needed to initialize pam in order to properly set the user limits, since a suid root program will inherit the limits of root, not of the user who you are switching to (which does make sense). I should also note that simply calling pam is not enough, you also have to have set pam_limits in the process’ pam configuration file.

The most surprising thing I learned was that the 2.6 kernel sets an arbitrary hard user limit for each user. This bit of code exists in the kernel:

init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2;
init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2;

That limit gets set in init, then is inherited throughout the system. This means that every user has an nproc limit, which also means that the setuid() attack will work on every 2.6 kernel system, even if user limits are not enabled.

2006年06月20日

2006年06月19日

以后就不再孤单了!

守得云开见月明!

2006年06月08日

桃花坞里桃花庵,桃花庵下桃花仙。桃花仙人种桃树,又摘桃花换酒钱。

酒醒只在花前坐,酒醉还来花下眠。半醉半醒日复日,花落花开年复年。

但愿老死花酒间,不愿鞠躬车马前。车尘马足显者事,酒盏花枝隐士缘。

若将显者比隐士,一在平地一在天。若将花酒比车马,彼何碌碌我何闲。

别人笑我太疯癫,我笑他人看不穿。不见五陵豪杰墓,无花无酒锄作田。

心情阴雨,没心情做事。

希望一切都会好起来。

在这里给自己祝福一下,其实,我也是很脆弱的呢,需要人鼓励,就先给自己打气了!

2006年06月07日

最近看到又有人把NTFS的流问题拿出来骗点击

不过真正让我没想到的是国外那么多AV居然都没有检测的!!

汗,当年29A用这个来做病毒应该是很著名过的。

看来有时候老问题,不见得就解决了。

ORACLE的漏洞不也是补了N年都没补上吗~~~~~~

所以,生活中并不缺少漏洞,而是缺少发现!

相关连接:http://www.securiteam.com/windowsntfocus/5OP021FIUC.html

2006年06月06日

关于淘宝的招财进宝事件,现在已经渐渐降温了。

我也算受到余波干扰的吧。

当时有人举报反淘宝签名的网站ourtaobao上有病毒。

我授命追查此事。截图上可以看到是木马,被诺顿给杀了。

但我去test之后,发现并没有任何木马,但是他有XSS。

所以此事有两个可能

1。ourtaobao在上面挂马,然后撤下来了

2。被别人利用了XSS来挂马

真相到底如何?我也不知道。

不过从被诺顿杀来看,应该不会是精心策划的,所以被人利用的可能性要大一点。