⚔️
DWSec Wiki
  • Welcome to the DWSec Notes
  • Windows Privilege Escalation
  • Active Directory
    • Fundamentals
      • Introduction
      • Protocols
      • Authentication
      • Glossary of terms
      • Objects
      • AD CS
    • Pentest Methodology
    • Insecure Logins
    • Bloodhound & ldapdomaindump
    • NTLMRelaying (445)
    • SMB Coercing (445)
    • Pre2k
    • DACL Abuse
    • Kerberoasting
    • Utility Tools
    • Powershell
  • Networking
    • Fundamentals
    • Pivoting, Tunneling and Portforwarding
    • DNS
    • Ligolo-ng
    • Toolbox
    • Protocols
      • 80/443 - HTTP/HTTPS
      • 389 - LDAP
      • 445 - SMB
  • Web
    • Active Enumeration
    • Passive Enumeration
  • ADPwn
  • Tools
    • Tools overview
Powered by GitBook
On this page
  • 0 - prerequisites
  • 1 - start proxy
  • 2 - start agent
  • 3 - setup initial tunnel
  • 4 - setup listeners (optional)
  • Troubleshooting

Was this helpful?

  1. Networking

Ligolo-ng

0 - prerequisites

Build proxy:

go build -o proxy cmd/proxy/main.go

Build agent:

go build -o agent cmd/agent/main.go

For windows: add GOOS=windows prefix

1 - start proxy

  • check for correct rights (otherwise chmod)

sudo ./proxy --selfcert

2 - start agent

  • also check for correct rights

./agent -ignore-cert -connect <IP>:11601

3 - setup initial tunnel

  • In ligolo-ng console:

  • sessions -> select new agent session -> autoroute -> via new interface

4 - setup listeners (optional)

TODO

Troubleshooting

Fix for glibc error on linux:

CGO_ENABLED=0 go build -ldflags="-extldflags=-static" -o agent cmd/agent/main.go

PreviousDNSNextToolbox

Last updated 6 months ago

Was this helpful?