Giter Club home page Giter Club logo

kg_ssh's Introduction

介绍

主要工具:kgssh

集成了ssh客户端、ssh服务器、ssh反向客户端、ssh反向服务器。且对于ssh反向客户端,会持续发出连接请求,所以只要运行该程序,可以持续反弹shell,稳定性较好

使用方式

  • pipenv sync
  • pipenv shell
  • pipenv run python kgssh.py [host_ip] [port] [username] [password]

其他工具

三个简单的工具:

  • keepalive_client.py: 作为搭建在渗透目标上的ssh客户端,长时间连接目标的服务器,并反弹自身的shell给服务器
  • ssh_reverse_server: 作为ssh服务器,反向获取ssh客户端的shell
  • ssh_client.py: 作为ssh客户端,仅让目标执行一条命令

使用实例

技术回顾

本次主要使用了paramiko库来实现ssh的核心功能。

  • 创建客户端的channel的过程为: SSHClient -> Transport -> channel
  • 创建服务端的channel的过程为: socket -> Transport -> channel
    channel可以使用类似socket的各种方法来收发数据,ssh的加密、解密过程会自动完成。

kg_ssh's People

Contributors

ky9oss 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.