Incredibly fast crawler designed for OSINT.
Moved documentation to wiki + a lot more
Somdev Sangwan0af8e4c61ea1
diff --git a/README.md b/README.mdindex acdbe4d..977d67c 100644--- a/README.md+++ b/README.md@@ -1,17 +1,14 @@-# Photon+# Photon [](https://www.python.org/downloads/) [](https://www.gnu.org/licenses/gpl-3.0.en.html) [](https://github.com/s0md3v/Photon/blob/master/CHANGELOG.md) [](https://github.com/s0md3v/Photon/tree/master/plugins)Photon is a lightning fast web crawler which extracts URLs, files, intel & endpoints from a target.-Yep, I am using 100 threads and Photon won't complain about it because its in Ninja Mode :sunglasses:+## Main Features-## Why Photon?+#### Data Extraction+Photon extracts the following data while crawling by default:--#### Not Your Regular Crawler-Crawlers are supposed to recursively extract links right? Well that's kind of boring so **Photon** goes beyond that.-It extracts the following information:- URLs (in-scope & out-of-scope)- URLs with parameters (`example.com/gallery.php?id=2`)- Intel (emails, social media accounts, amazon buckets etc.)@@ -22,104 +19,34 @@ It extracts the following information:The extracted information is saved in an organized manner.\-#### Intelligent Multi-Threading+Photon also allows custom data extraction with [regex patterns](https://github.com/s0md3v/Photon/wiki/Usage#custom-regex-pattern).++#### Intelligent MultithreadingHere's a secret, most of the tools floating on the internet aren't properly multi-threaded even if they are supposed to. They either supply a list of items to threads which results in multiple threads accessing the same item or they simply put a thread lock and end up rendering multi-threading useless.\-But Photon is different or should I say "genius"? Take a look at [this](https://github.com/s0md3v/Photon/blob/1621e7dbae0907ef2be0961f0167b729b4684bda/photon.py#L316-L328) and decide yourself.+But Photon is different or should I say "genius"? Take a look at [this](https://github.com/s0md3v/Photon/blob/aaf5ab3b2a2a168a8eb625eb2a6feb4307521f22/photon.py#L315-L339) and decide yourself.#### Ninja ModeIn Ninja Mode, 3 online services are used to make requests to the target on your behalf.\So basically, now you have 4 clients making requests to the same server simultaneously which gives you a speed boost, minimizes the risk of connection reset as well as delays requests from a single client.\Here's a comparison generated by [Quark](https://github.com/s0md3v/Quark) where the lines represent threads:---### Usage--#### `-u --url`--Run Photon against a single website.--`python photon.py -u http://example.com`--Specifying a URL with it's schema i.e. `http(s)://` is optional but you **must** add `www.` if the website has it.--**Tip :bulb: :** If you feel like the crawling is taking too long or you just don't want to crawl anymore, just press `ctrl + c` in your terminal and Photon will skip the rest of URLs.--#### `-l --level`--Depth of crawling.--`python photon.py -u http://example.com -l 3`--Default Value: `2`--#### `-d --delay`--You can keep a delay between requests made to the target by specifying the time in seconds.--`python photon.py -u http://example.com -d 1`--Default Value: `0`--#### `-t --threads`--Number of threads to use.--`python photon.py -u http://example.com -t 10`--Default Value: `2`--**Tip :bulb: :** The optimal number of threads depends on your connection speed as well as nature of the target server. If you have a decent network connection and the server doesn't have any rate limiting in place, you can use up to `100` threads.--#### `-c --cookie`--Cookie to send.--`python photon.py -u http://example.com -c "PHPSSID=821b32d21"`--**Tip :bulb: :** Don't use ninja mode when you are using cookies because the online services used in that mode don't allow that.--#### `-n --ninja`--Toggles Ninja Mode on/off.--`python photon.py -u http://example.com --ninja`--Default Value: `False`--**Tip :bulb: :** Ninja mode uses the following websites to make requests on your behalf:--- [codebeautify.org](https://codebeautify.org)-- [photopea.com](https://www.photopea.com)-- [pixlr.com](https://pixlr.com/)--Please help me add more "APIs" to reduce load on their servers and turn off this mode whenever not required.--#### `--dns`--Create an image displaying target domain's DNS data.--`python photon.py -u http://example.com --dns`--Sample Output:----**Tip :bulb: :** It doesn't work with subdomains. This plugin is in development and this issue will be fixed in a day or two.--#### `-s --seeds`--Lets you add custom seeds, seperated by commas.+-`python photon.py -u http://example.com -s "http://example.com/portals.html,http://example.com/blog/2018"`+#### Plugins+Photon's capabilites can be further extended by the use of plugins.\+Plugins Available:+- **[dnsdumpster](https://github.com/s0md3v/Photon/wiki/Usage#dumping-dns-data)**: Generates an image containing the DNS data of the target doman.-#### `-r --regex`+Plugins in active development:-Specify custom regex pattern to extract strings.+- **Quark**: A plugin to plot a graph making it easier to inspect relationships between different webpages using [Quark](https://github.com/s0md3v/Quark).+- **dnsdumpster**: A new version of the plugin is in development which will save the DNS data in a nicely formatted HTML file.-`python photon.py -u http://example.com -r "\d{10}"`+#### Support+The project is in heavy development and any submitted issues or pull requests will be acknowledged within min 5 minutes andmax 9 hours.-The strings extracted using the custom regex pattern are saved in `custom.txt`.+### Compatibility & Usage+A detailed usage of Photon can be found on the [Usage](https://github.com/s0md3v/Photon/wiki/Usage) and compatibility related information on [Compatibility & Dependencies](https://github.com/s0md3v/Photon/wiki/Compatibility-&-Dependencies) section of the [Wiki](https://github.com/s0md3v/Photon/wiki).### Contribution & LicenseYou can contribute in following ways:@@ -130,4 +57,4 @@ You can contribute in following ways:- Give suggestions to make it better- Fix issues & submit a pull request-**Photon** is licensed under [GPL v3.0 license](https://www.gnu.org/licenses/gpl-3.0.en.html).+**Photon** is licensed under [GPL v3.0 license](https://www.gnu.org/licenses/gpl-3.0.en.html)