• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

allyshka/pwngitmanager: Git manager for pentesters

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

allyshka/pwngitmanager

开源软件地址:

https://github.com/allyshka/pwngitmanager

开源编程语言:

Python 100.0%

开源软件介绍:

PwnGitManager

Overview

This git manager helps during penetration testing process. When you found opened .git repository on perimeter. On company web site. What do you do next? Download all files from them by git-ripper scripts, I guess. But it's not always necessary, because repository can be huge and often you need only some files from it. Config files for example. Besides, many requests to the server (while downloading objects) can alert IDS.

For that cases I wrote this tool. It's download only index file from repository and next you can search files, paths and then download and view only what you need.

Git Pwn

Installation

You do not need special requirements for now. Only python 3 and python-telegram-bot if you want use telegram bot of course.

Use

If you use Windows then install pyreadline

pip install pyreadline

Tool can run in two modes: interactive and command

interactive mode:

python3 pwngit.py
URL not specified. Run in interactive mode.
> use snoopdogg.com
Valid scheme not found in url. Using http instead.
Working with http://snoopdogg.com repository
Downloading index file (http://snoopdogg.com/.git/index) ...

You can use URL with scheme http or https. You can add path to git (ex.: http://example.com/path/to/.git) or, if git folder in web root, you can use short URL (ex.: example.com)

Commands:
help                 show this info
ls [dir]             list files in repository path
get <path|mask>      get, save and show file by path or mask. Ex.: get *.ini
find <query>         find by file names. Ex.: find *.sql
search <query>       find by folder name. Ex.: search wp-content
exit|quit|e|q        exit to select repository mode

You can use [TAB] for autocomplete paths. All getted files saves in data// folder by them actual paths in repository.

command mode:

In this mode you can send command right in command line with -c/--command flag.

python3 pwngit.py <repo> -c <command>
python3 pwngit.py example.com -c "get wp-config.php"

proxy:

You can set up proxy with -p/--proxy flag. Format is **http(s)://127.0.0.1:8080". Socks5 not supported yet because of minimum requirements.

Telegram bot

Install python-telegram-bot and replace [TOKEN_HERE] in telegrambot.py by your BotFather token.

pip install python-telegram-bot
python3 telegrambot.py

Send help to bot and see full command list

TODO

  • Add get files by mask. Like get application/*.cfg
  • Add command for all repository files download
  • Add proxy support
  • Add multithread downloads
  • Add .git directory listing detection
  • Add database storage for repository data
  • Add packs detection

Thanks

Big thank to Sean B. Palmer for gin tool. I was take index file parser function from there.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap