存档

文章标签 ‘backtrack’

Metasploit with MYSQL in BackTrack 4 r2

2010年12月24日 admin     1,648 views 没有评论

Metasploit with MYSQL in BackTrack 4 r2
From:http://hi.baidu.com/p3rlish/blog/item/de16d790f29e749fa977a4a3.html
Until the release of BackTrack 4 r2, it was possible to get Metasploit working with MYSQL but it was not an altogether seamless experience. Now, however, Metasploit and MYSQL work together “out of the box” so we thought it would be great to highlight the integration. With the Metasploit team moving away from sqlite3, it is vital to be able to make use of a properly threaded database. There have also been quite a number of additional database commands added to Metasploit and documentation tends to be rather sparse online when it comes to the less “glamorous” side of database management.
root@bt:~# msfconsole

=[ metasploit v3.5.1-dev [core:3.5 api:1.0]
+ —-=[635 exploits - 316 auxiliary
+ ----=[215 payloads - 27 encoders - 8 nops
=[svn r11078 updated today (2010.11.19)

msf > db_driver
[*]    Active Driver: postgresql
[*]        Available: postgresql, mysql, sqlite3

We then load the mysql driver, start the mysql service and connect to the database. If the database does not already exist, Metasploit will create it for us.
msf > db_driver mysql
[*] Using database driver mysql
msf >/etc/init.d/mysql start
[*]exec: /etc/init.d/mysql start

Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
msf > db_connect
[*]    Usage: db_connect @/
[*]       OR: db_connect -y[path/to/database.yml]
[*] Examples:
[*]        db_connect user@metasploit3
[*]        db_connect user:pass@192.168.0.2/metasploit3
[*]        db_connect user:pass@192.168.0.2:1500/metasploit3
msf > db_connect root:toor@127.0.0.1/msf3
阅读全文…

SSH代理,socks代理,dante,backtrack.

2010年3月30日 xion     3,059 views 2 条评论

本文收集了SSH代理,SOCKS代理的用法。

1、SSH代理:

如果你有ssh帐号(最好是国外的),那么你就可以打造自己专用的代理了

Windows:

plink putty的一个组件
然后新建一个快捷方式,指向PLINK.EXE -C -D 127.0.0.1:7777 -N -pw SSH密码 SSH用户名@SSH的IP地址
把快捷方式的运行方式改成:最小化,好了,双击快捷方式启动PLINK,这个时候你的电脑本地回环(Loopback)已经建立起了一个Socks5代理,地址是 127.0.0.1,端口是7777

Linux:

1. linux下也可以使用plink

ubuntu用户可以直接安装

1
sudo apt-get install putty

安装完成后执行

1
plink -C -D 127.0.0.1:7777 -N -pw 密码 用户名@服务器地址

为了使用方便,我们可以在桌面创建一个启动器,如图
命令处填 plink -C -D 127.0.0.1:7777 -N -pw 密码 用户名@服务器地址

阅读全文…