Giter Site home page Giter Site logo

github_hunter_by_golang's Introduction

Github_Hunter_By_Golang

最新版的Github Hunter由Golang重写,加入了新的一些小特性。 本工具主要是搜索Github存在的敏感信息,如用户名、密码和基础设置配置信息等。

运行要求

Golang 1.11.5

系统支持

Linux,MacOS,Windows

安装使用方法

1.git clone https://github.com/Hell0W0rld0/Github_Hunter_By_Golang.git
2.cd Github_Hunter_By_Golang
3.如果你没有Golang的运行环境,需要从Golang官方网站下载,具体下载方法请自行搜索,谢谢!
4.安装好Golang环境后,可以直接使用go run Github_Hunter.go 运行,也可以编译成可执行文件。
5.运行或编译前需要使用go get来安装依赖
6.go get github.com/gocolly/colly github.com/mattn/go-sqlite3 gopkg.in/cheggaaa/pb.v2 gopkg.in/gomail.v2 gopkg.in/ini.v1
安装完成后即可使用 go build Github_Hunter.go 来生成可执行文件。

设置

使用前,需要配置ini文件,把info.ini.example更改为info.ini,然后根据需要填写以下内容

例子

[KEYWORD]
keyword1 = 主关键词,如域名
keyword2 = 主关键词
keyword3 = 主关键词
...etc

[EMAIL]
host = 邮件服务器
user = 邮件用户名
password = 邮件密码

[SENDER]
sender = 发送者的邮件地址

[RECEIVER]
receiver1 = 接收者邮件地址-1
receiver2 = 接收者邮件地址-2

[Github]
user = Github 用户名
password = Github 密码

[PAYLOADS]
p1 = Payload 1
p2 = Payload 2
p3 = Payload 3
p4 = Payload 4
p5 = Payload 5
p6 = Payload 6

关键词 和 载荷设置

尽量设置2-5个主关键词,如baidu.com,BaiDu.com,BAIDU.com,baidu.COM,BAIDU.COM等。
Payloads处,加入敏感关键词,如password、Password、Username、UserName、Database、Mysql等。

运行

如已编译成可执行程序则,使用./Github_Hunter运行,Windows: Github_Hunter.exe。
未编译则使用go run Github_Hunter.go运行。
运行后搜索到敏感信息会发送邮件进行通知,如果长期监控,请使用计划任务crontab来设置运行频度。
已上传编译好的可执行文件,请查看仓库中的Github_Hunter_for_mac 和 Github_Hunter_for_linux。Windows版本请自行编译,谢谢!

截图

结果展示:

Result

github_hunter_by_golang's People

Contributors

hell0w0rld0 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

Watchers

 avatar

github_hunter_by_golang's Issues

无法build

build command-line-arguments: cannot load gopkg.in/mattn/go-colorable.v0: cannot find module providing package gopkg.in/mattn/go-colorable.v0

楼主有遇到吗?
go version go1.12.7 windows/amd64
proxy:https://goproxy.io/

邮件发送失败

[√]所有信息收集完成!
存在数据文件,开始进行新增数据查找......
操作完毕!
发送邮件失败! gomail: could not send email 1: 503 5.5.2 Need rcpt command
panic: gomail: could not send email 1: 503 5.5.2 Need rcpt command

goroutine 1 [running]:
main.sendMail(0x119a470, 0x0, 0x0, 0xc000025781, 0x13, 0xc75a10, 0x34, 0xc0000256a1, 0xf, 0xc0000192a1, ...)
D:/03.work/workspace/test/Github/Github_Hunter_By_Golang/Github_Hunter.go:211 +0x58c
main.main()
D:/03.work/workspace/test/Github/Github_Hunter_By_Golang/Github_Hunter.go:113 +0x17b9
exit status 2

github登录提示需要输入验证码,无法正常登录和使用

A sign in attempt requires further verification because we did not recognize your device. To complete the sign in, enter the verification code on the unrecognized device.

Device: colly
Verification code: 123456

现在github登录提示需要输入验证码,这个怎么过?

工具很赞,轻!!谢谢!

import cycle not allowed

$ go run Github_Hunter.go
import cycle not allowed
package main
imports github.com/gocolly/colly
imports google.golang.org/appengine/urlfetch
imports github.com/golang/protobuf/proto
imports google.golang.org/protobuf/encoding/prototext
imports google.golang.org/protobuf/proto
imports google.golang.org/protobuf/encoding/prototext
import cycle not allowed
package main
imports github.com/gocolly/colly
imports google.golang.org/appengine/urlfetch
imports github.com/golang/protobuf/proto
imports google.golang.org/protobuf/encoding/prototext
imports google.golang.org/protobuf/proto
imports google.golang.org/protobuf/proto

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.