Git Product home page Git Product logo

port_resue's Introduction

端口复用(Port Reuse)

技术原理

  • 注入SSH/Apache2等进程,挂钩accept/read/write等函数。复用对方服务端口,加密转发自身流量,实现反弹Shell、文件上传下载等。

使用方法

  • client_on_windows
    • define HOST 处设定目标IP
    • define PORT 处设定目标端口
    • 使用VS2019编译运行
  • server_on_linux
    • injectme.c => define PASSWORD处设定密码(默认为Qihoo)
    • 运行对应inject-xxx脚本(可能需要设定chmod +x inject-xxx.sh)

测试概况

操作系统 SSH:22 apache2:80
kali 2020 一切正常 一切正常
ubuntu 9 一切正常 注入worker进程段错误(即使注入空so文件)
centos 7 成功注入,运行过程段错误(需要事先setenforce 0) 注入worker进程dlopen调用失败(即使注入空so文件)

参考链接

port_resue's People

Contributors

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