Coder Social home page Coder Social logo

ratsnake's Introduction

what is rat snake?

-execute commands against android devices using the android debug bridge protocol
-support for proxychains, traffic can be routed through tor network
-support for threading, can target many devices at once
-support for saving command output to file
-support for shell and exec command execution
-supports targeting ipv4 networks or reading targets from a list
-ipv6 not supported
-adb authorization not supported

-how to get device name, model, and features
cat output/results.json | jq -s '.[] | if(has("device_header")) then . else empty end | {ip,device:.device_header|@base64d|split(";")}|{ip,name:.device[0],model:.device[1],device:.device[2],features:.device[3]}'

-how to get results from commands
cat output/results.json | jq -cs '.[] | if(has("cmds")) then . else empty end | {ip,command:.cmds[],device:.device_header|@base64d|split(";")}|{ip,cmd:.command.cmd,output:.command.data|@base64d,name:.device[0],model:.device[1],device:.device[2],features:.device[3]}' | jq -s '.'

-find devices that are secured
cat output/results.json | jq 'if(.secured) then . else empty end'

-look at unique list of packages
cat output/online-packages.json | jq -c '{ip,cmd:.cmds[]} | {ip,cmd:.cmd.cmd,output:.cmd.data|@base64d}| if(.output|test("^Error")) then empty else . end | {ip,package:.output|split("package:")[]} | if(.package|test("^/")) then .package=(.package|split("=")[1]) else . end | {ip,package:.package|rtrimstr("\n")|rtrimstr("\r")}|.package' | sort | uniq -c | sort -n

-format results into csv
cat output/results.json | jq -cs '.[] | if(has("device_header") and has("cmds")) then . else empty end | {ip,cmds,device:.device_header|@base64d|split(";")}|{ip,cmds,name:.device[0],model:.device[1],device:.device[2],features:.device[3]} | {ip:(.ip|rtrimstr("\n")),device,model,features,cmd:(.cmds[]|.cmd),output:(.cmds[]|.data|@base64d)}|[.ip,.device,.model,.features,.cmd,.output]' | jq -c '.'

ratsnake's People

Contributors

amadeuskonopko avatar amkonopko avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.