Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Description

Wrapper of ligolo-ng

The script will:

  • Connect to remote target via SSH and get routes
  • Create tunnel and add routes of remote host through that tunnel (does not install any route that maches your own routes)
  • copy the ligolo agent to remote host and start it
  • Automatically start tunnnels and add listeners when agent connects
  • Enters interactive mode to interact with ligolo

When the script is terminated (ie when you type 'exit' from ligolo), it will remove tunnels and routes

Installation

Install python required modules, and make the script executable

pip install -r requirements.txt
chmod +x autogolo.py

Usage

Always run as root

usage: autogolo.py [-h] -ho HOST [-id LIGOLO_ID] -i LOCAL_IP [-t THRU] -u USER [-pw PASSWORD] [-p PORT] [-c]
                   [-l LISTENERS]

options:
  -h, --help            show this help message and exit
  -ho HOST, --host HOST
                        Target IP/Host
  -id LIGOLO_ID, --ligolo-id LIGOLO_ID
                        Ligolo Session ID
  -i LOCAL_IP, --local-ip LOCAL_IP
                        Local IP
  -t THRU, --thru THRU  Tunnel goes through instance
  -u USER, --user USER  User
  -pw PASSWORD, --password PASSWORD
                        Password
  -p PORT, --port PORT  Port
  -c, --clean           Cleanup only (remove routes, tunnels, etc...)
  -l LISTENERS, --listeners LISTENERS
                        Automatically create this amount of ligolo listeners. Default 5.

Basic Example

Blabla

Double Pivot Example

TODO