Giter Site home page Giter Site logo

reverse_shell's Introduction

Reverse Shell - Arduino Digispark

For this to work you will need to download ngrok and netcat.

Installation ngrok

  • Linux
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok

NOTE: Netcat is already installed on Linux systems.

  • Windows

Installing Chocolatey

Open Powershell and run as administrator, then run the command below:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Installing ngrok

> choco install ngrok
  • NOTE: unlike Linux, Windows does not come with Netcat installed, so you can install it here.
  1. Extract netcat-win32-1.12.zip and move the extracted files to the directory on Windows: C:/Windows/System32
  2. installations on the respective systems are done, now let's create the reverse shell

Creating Reverse Shell

  • Creating data tunnel to receive TCP packets
ngrok tcp 44444

Captura de tela de 2023-04-30 21-23-24

The print shows some ngrok connection information, you can see that there is a parameter called Forwarding, when located, take the address 0.tcp.sa.ngrok.io and port 16832 set and save it in some text editor, you will need it later.

  • Now create a bridge to ngrok by setting the same port
nc -lnvp 44444

Captura de tela de 2023-04-30 21-22-02

  • When configuring everything, go back to the shell.ino code, on line 27, change YOUR_NGROK_ADDRESS to your ngrok address and PORT_NGROK for your ngrok port

Okay, now it's time to compile and run your tests :)

reverse_shell's People

Contributors

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