Coder Social home page Coder Social logo

go-gtfo's Introduction

License: GPL v3


gtfo

Reimplementation of my tool gtfo in Go.

I'm mostly doing this as a means of learning Go as it seemed like a nice first project to start with. Also, it's much easier to make binaries from Go scripts.

Gallery

  • gtfo -b nmap

  • gtfo -e At.exe

  • gtfo -e Bash.exe

  • gtfo -b randomnamehere

Usage

Search gtfobin and lolbas from terminal

Options:
  -b, --bin <binary>       Search Linux binaries on gtfobins
  -e, --exe <EXE>          Search Windows exe on gtfobins

Installation

You can download the pre-compiled binary from here

If you want to make changes to the code and then compile the binary you can clone this repo and then run:

go build

Also, you can run the following command to install it directly:

go get github.com/mzfr/go-gtfo

If you want to run this locally then do the following:

  1. Clone this repo: git clone https://github.com/mzfr/go-gtfo
  2. run: go run main.go -b <binary_name>

Note: Make sure you have go installed.

Support

If you'd like you can buy me some coffee:

Buy Me A Coffee

go-gtfo's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-gtfo's Issues

error with journalctl

go-gtfo -b nmap works fine, but i have an error when i run:
go-gtfo -b journalctl

the error is:

./go-gtfo -b journalctl
_ _ _ __
| || | | | / |
|
__ | __ _ | | | |_ ___
| || | / ` | | _| | | / _
|
__ | | (| | | |
| | | (
) |
|||| _, | _| |_| __/
/ |
|
/
panic: interface conversion: interface {} is string, not map[interface {}]interface {}

goroutine 1 [running]:
main.gtfobins(0x7ffe2597552e, 0xa)
/root/go/src/github.com/mzfr/go-gtfo/main.go:70 +0xda3
main.main()
/root/go/src/github.com/mzfr/go-gtfo/main.go:96 +0x1f3

Add hunt mode

Basically a hunt mode would be that the binary searches for all the SUIDs in a Linux system and then checks each of them on the gtfobins and shows the output(if any).

Hunt mode would be activated by a single flag without any value like:

gtfo --hunt

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.