Giter Site home page Giter Site logo

junnlikestea / bulkssrf Goto Github PK

View Code? Open in Web Editor NEW
36.0 4.0 7.0 14 KB

Tests for SSRF by injecting a specified location into different headers. This is a Rust port of m4ll0k's tool.

License: The Unlicense

Rust 100.00%
rust bugbounty-tool ssrf async tokio-rs

bulkssrf's Introduction

BulkSSRF (bssrf)

release Build status

This is a Rust port of m4ll0k ssrf.py script.

Installation

Precompiled binaries for bssrf are available in the releases tab. Just pick your platform and extract the archive that contains the binary.

Building it yourself

If you want to build it yourself you will need to install Rust, you can get the official installation from the Rust website.

To build BulkSSRF:

$ git clone https://github.com/junnlikestea/bulkssrf
$ cd bulkssrf
$ cargo build --release
$ ./target/release/bssrf --version

Usage

With a list of urls in a file:

bssrf -f path/to/file.txt -l xyzburpcollaborator.com

Using a tool like gau to feed bssrf urls:

gau hackerone.com | bssrf -l xyzburpcollaborator.com

By default the program has timeout set to 5 seconds, but you can alter that with the -t flag, you can also add various debugging info with the -v for verbose flag:

gau hackerone.com | bssrf -v -t 10 -l xyzburpcollaborator.com 

If you want to feed the traffic through an http proxy you can use the -p or -replay-proxy flag.

gau hackerone.com | bssrf -l xyzburpcollaborator.com -p http://127.0.0.1:8080

Common error

BulkSSRF uses async concurrent http requests under the hood. If you encounter an error similar to "Too many open files" it means that there isn't enough available file descriptors on your system. You can fix this by increasing the limits available. There are lots of different guides available to increase the limits, but here is one for linux. I actually ran into this problem while writing the code.

Disclaimer

Developers have/has no responsibility or authority over any kind of:

  • Legal or Law infringement by third parties and users.
  • Malicious use capable of causing damage to third parties.
  • Illegal or unlawful use of bulkssrf.

Thanks to 0xatul for the feedback!

bulkssrf's People

Contributors

junnlikestea 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

Watchers

 avatar  avatar  avatar  avatar

bulkssrf's Issues

Append target domain as a subdomain

I found it a bit difficult to find which target was vulnerable, could you add the target to the subdomain of the payload?

Example:
google-com.xyzburpcollaborator.com

Warning

warning: unused std::result::Result that must be used
--> src/lib.rs:123:9
|
123 | t.await?;
| ^^^^^^^^^
|
= note: #[warn(unused_must_use)] on by default
= note: this Result may be an Err variant, which should be handled

warning: bulkssrf (lib) generated 1 warning
warning: value assigned to urls is never read
--> src/bin/main.rs:14:13
|
14 | let mut urls: Vec = Vec::new();
| ^^^^
|
= note: #[warn(unused_assignments)] on by default
= help: maybe it is overwritten before being read?

warning: bulkssrf (bin "bssrf") generated 1 warning
Finished release [optimized] target(s) in 15m 46s

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.