Skip to content

Incredibly fast crawler designed for OSINT.

several updates

Somdev Sangwan77b3d31dabde
diff --git a/README.md b/README.md
index 0d198da..5f808d1 100644
--- a/README.md
+++ b/README.md
@@ -4,28 +4,33 @@ Photon is a lightning fast web crawler which extracts URLs, files, intel & endpo
![demo](https://image.ibb.co/bTNwBy/Screenshot_2018_07_22_12_07_30.png)
+Yep, I am using 100 threads and Photon won't complain about it because its in Ninja Mode.
+
## Why Photon?
#### Intelligent Multi-Threading
-Here's a secret, most of the tools floating on the internet aren't properly multi-threaded. 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 "genius"? Take a look at [this](https://github.com/s0md3v/Photon/blob/38f64100d101fce897b4e0a5cfafdaeb129491d2/photon.py#L282) and decide yourself.
+Here'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/38f64100d101fce897b4e0a5cfafdaeb129491d2/photon.py#L282) and decide yourself.
#### Ninja Mode
-In **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 as well as delays requests from a single client.\
+In 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):
![ninja demo](https://image.ibb.co/mcNbTd/ninj.png)
#### Not Your Regular Crawler
-Crawlers are supposed to recursively extract links right? Yeah but that's kinda boring so **Photon** goes beyond that.
-It extracts & saves following information:
+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.)
- Files (pdf, png, xml etc.)
- JavaScript files & Endpoints present in them
+The extracted information is saved in an organized manner.\
+![save demo](https://image.ibb.co/ezTEyd/Screenshot_2018_07_22_12_24_44.png)
+
### Usage
#### `-u --url`
@@ -36,7 +41,7 @@ Specifies the URL to crawl.
#### `-l --level`
-It specifies how much deeper should photon crawl
+It specifies how much deeper should photon crawl.
`python photon.py -u http://example.com -l 3`
@@ -57,17 +62,18 @@ The number of threads to use.
`python photon.py -u http://example.com -t 10`
Default Value: `2`
-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.\
-I like to use 10 threads most of the time.
+
+**Note:** 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.\
+Cookie to send.
+
`python photon.py -u http://example.com -c "PHPSSID=821b32d21"`
#### `-n --ninja`
-It toggles Ninja Mode on/off.\
+Toggles Ninja Mode on/off.
`python photon.py -u http://example.com --ninja`
@@ -75,7 +81,7 @@ Default Value: `False`
#### `-s --seeds`
-Let's you add custom seeds, sperated by commas.
+Lets you add custom seeds, sperated by commas.
`python photon -u http://example.com -s "http://example.com/portals.html,http://example.com/blog/2018"`