Rover12421's Blog

The End.

Sqlninja 环境配置

Sqlninja是Linux下用Perl开发的Sql注入工具,虽说他只是工具而已,但是环境还是有要求的,不是放到Linux就能用的。使用参考我在Zerofile上发的《Sqlninja》。Sqlninja需要的Perl模块有:NetPacket .Net-Pcap .Net-DNS .Net-RawIP .IO-Socket-SSL .。至少需要者4个模块。

安装这些模块前,先安装cpan模块,这个是可以用来自动安装perl模块的,很方便,但是不安装好像也不会有太大的问题。

http://search.cpan.org/~andk/CPAN-1.94/lib/CPAN/Version.pm

http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/CPAN-1.94.tar.gz

[root@RHEL CPAN-1.94]#perl Makefile.PL
[root@RHEL CPAN-1.94]#make
[root@RHEL CPAN-1.94]# make install

配置cpan:

# perl -MCPAN -e shell  (或者:#cpan)
cpan> o conf urllist unshift http://www.perl.com/CPAN/
cpan> o conf commit

完成。

http://search.cpan.org/~yanick/NetPacket-0.41.1/lib/NetPacket.pm

http://search.cpan.org/CPAN/authors/id/Y/YA/YANICK/NetPacket-0.41.1.tar.gz

http://search.cpan.org/~saper/Net-Pcap-0.16/

http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-Pcap-0.16.tar.gz

http://search.cpan.org/~olaf/Net-DNS-0.65/

http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/Net-DNS-0.65.tar.gz

http://search.cpan.org/~saper/Net-RawIP-0.25/

http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-RawIP-0.25.tar.gz

这是4个模块的下载页面和下载地址。Net-Pcap-0.16不一定能装的起来的。参考我前面写的<Perl 的 Net::Pcap 模块安装>.这些模块都可以用cpan自动安装,在cpan查线对应的模块和cpan安装名字就可以了。

安装这些出了Net-Pcap 外基本上没什么问题。但也要注意。

[root@RHEL NetPacket-0.41.1]# perl Makefile.PL
This module requires Module::Build to install itself.
Install Module::Build now from CPAN? [y] y
CPAN: Storable loaded ok (v2.15)
Going to read ‘/root/.cpan/sources/authors/01mailrc.txt.gz’
CPAN: Compress::Zlib loaded ok (v1.42)
………………………………………………………………….DONE
Going to read ‘/root/.cpan/sources/modules/02packages.details.txt.gz’
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I’ll continue but problems seem likely to
happen.
CPAN: Time::HiRes loaded ok (v1.86)
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I’ll continue but problems seem likely to
happen.
DONE
Going to read ‘/root/.cpan/sources/modules/03modlist.data.gz’
Can’t locate object method “data” via package “CPAN::Modulelist” (perhaps you forgot to load “CPAN::Modulelist”?) at (eval 16) line 1.
at /usr/lib/perl5/5.8.8/CPAN/Index.pm line 514
CPAN::Index::rd_modlist(‘CPAN::Index’, ‘/root/.cpan/sources/modules/03modlist.data.gz’) called at /usr/lib/perl5/5.8.8/CPAN/Index.pm line 85
CPAN::Index::reload(‘CPAN::Index’) called at /usr/lib/perl5/5.8.8/CPAN.pm line 954
CPAN::exists(‘CPAN=HASH(0x9e181dc)’, ‘CPAN::Module’, ‘Module::Build::Compat’) called at /usr/lib/perl5/5.8.8/CPAN/Shell.pm line 1243
CPAN::Shell::expandany(‘CPAN::Shell’, ‘Module::Build::Compat’) called at /usr/lib/perl5/5.8.8/CPAN/Shell.pm line 1639
CPAN::Shell::rematein(‘CPAN::Shell’, ‘install’, ‘Module::Build::Compat’) called at /usr/lib/perl5/5.8.8/CPAN/Shell.pm line 1935
CPAN::Shell::__ANON__(‘CPAN::Shell’, ‘Module::Build::Compat’) called at Makefile.PL line 21

如果遇到这样的问题,就是cpan没配置好,cpan的urllist是很重要和必须的,这个时候按最开始的cpan安装配置弄下就能解决了。

Comments