Skip to content

Incredibly fast crawler designed for OSINT.

Added custom regex documentation + minor changes

Somdev Sangwan42cd24ed4796
diff --git a/README.md b/README.md
index ce89ec5..370f800 100644
--- a/README.md
+++ b/README.md
@@ -36,15 +36,17 @@ Here's a comparison generated by [Quark](https://github.com/s0md3v/Quark) where
#### `-u --url`
-Specifies the URL to crawl.
+Run Photon against a single website.
`python photon.py -u http://example.com`
-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.
+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`
-It specifies how much deeper should photon crawl.
+Depth of crawling.
`python photon.py -u http://example.com -l 3`
@@ -52,7 +54,7 @@ Default Value: `2`
#### `-d --delay`
-It specifies the delay between requests.
+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`
@@ -60,13 +62,13 @@ Default Value: `0`
#### `-t --threads`
-The number of threads to use.
+Number of threads to use.
`python photon.py -u http://example.com -t 10`
Default Value: `2`
-**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.
+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`
@@ -86,7 +88,15 @@ Default Value: `False`
Lets you add custom seeds, seperated by commas.
-`python photon -u http://example.com -s "http://example.com/portals.html,http://example.com/blog/2018"`
+`python photon.py -u http://example.com -s "http://example.com/portals.html,http://example.com/blog/2018"`
+
+#### `-r --regex`
+
+Specify custom regex pattern to extract strings.
+
+`python photon.py -u http://example.com -r "\d{10}"`
+
+The strings extracted using the custom regex pattern are saved in `custom.txt`.
### Contribution & License
Apart from reporting bugs and stuff, please help me add more "APIs" to make the Ninja Mode more powerful and decrease the load on those poor servers.\