Giter Site home page Giter Site logo

nyancrimew / goop Goto Github PK

View Code? Open in Web Editor NEW
528.0 5.0 47.0 85 KB

Yet another tool to dump a git repository from a website, focused on as-complete-as-possible dumps and handling weird edge-cases.

License: MIT License

Go 100.00%
git infosec offensive-security bug-bounty

goop's People

Contributors

edermi avatar nyancrimew avatar six2dez 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

goop's Issues

[Crash] interface conversion

Hi !

I'm got a crash when i'm running the tool.
I'm not familiar with interfaces in golang and I cant debug it.

Can you take a look please

panic: interface conversion: jobtracker.Context is *workers.RecursiveDownloadContext, not workers.RecursiveDownloadContext

goroutine 25 [running]:
github.com/deletescape/goop/internal/workers.RecursiveDownloadWorker(0xc0000c81c0, 0xc0000b41b0, 0xa, 0x14e3700, 0xc0000af5f0)
/Users/segfault42/Documents/goop/internal/workers/recursivedownload.go:22 +0xf49
github.com/deletescape/jobtracker.workRoutine(0xc0000c81c0, 0x15c5470, 0x14e3700, 0xc0000af5f0)
/Users/segfault42/go/pkg/mod/github.com/deletescape/[email protected]/jobtracker.go:132 +0x92
created by github.com/deletescape/jobtracker.(*JobTracker).StartAndWait
/Users/segfault42/go/pkg/mod/github.com/deletescape/[email protected]/jobtracker.go:74 +0x85

Look into go2git

We could probably further boost speed and reliabilty by switching to a libgit2 binding like go2git, especially since go-git obviously struggles with some things the original git implementation doesn't. This would also allow us to get rid of all our calls out to the git commandline.

can't install on debian 10 ( buster ) docker

hello
i'm not a go expert, please be warn

i just run a brand new debian 10 via docker:

$ apt update; apt install golang
$ go get -u github.com/deletescape/goop

the directory is full of things: /root/go/src/github.com/deletescape/goop
but how are we supposed to lunch the software ?
"goop" is not reconized as a command

so i tried:
$ go run /root/go/src/github.com/deletescape/goop/main.go http://test.com
same with
$ go run /root/go/src/github.com/deletescape/goop/cmd/goop.go http://test.com

it fails with:
/root/go/src/github.com/go-git/go-git/storage/filesystem/dotgit/dotgit.go:17:2: code in directory /root/go/src/github.com/go-git/go-billy/osfs expects import "github.com/go-git/go-billy/v5/osfs"

thank you

Use git porcelain

in all places where we call out to the git cli we should be using --porcelain to parse data from a stable format.

Create objects using go-git

Instead of calling out to the git command twice to hash the missing files and then check them out, do the same thing natively using go-git.

I am not sure if this is possible, but it probably should be.

Add header to http requests?

Is it possible to provide a header value pair that is used for every http request sent to the server? If not could you please tell me where to edit the code to add such an option, I'm not really well versed with go :D

Fix the issue where everything locks up

Probably related to the absolutly horrendous way i am doing concurrency. Should probably be replaced with some channels feeding workers with jobs, instead of whatever this is.

go get does nothing

No idea what's wrong here, but go get -u github.com/deletescape/goop hangs... Other projects like https://github.com/deletescape/sloot work just fine.

Oh lol, while writing this, I got an output, but still no binary in go/bin:

go get -u github.com/deletescape/goop

code in directory /home/c0d3/go/src/github.com/go-git/go-billy/osfs expects import "github.com/go-git/go-billy/v5/osfs"

Disclaimer: non-go guy here ;)

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.