Skip to content

Commit

Permalink
Fix blank lines, remove slow enumeration tools
Browse files Browse the repository at this point in the history
- Fix blank lines
- Remove slow enumeration tools
  • Loading branch information
gvoze32 committed Dec 11, 2023
1 parent d849aa3 commit a0e0455
Showing 1 changed file with 22 additions and 95 deletions.
117 changes: 22 additions & 95 deletions dev/scripts/domain_scanner.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,14 @@
"\n",
"!git clone https://github.com/aboul3la/Sublist3r.git\n",
"!git clone https://github.com/guelfoweb/knock.git\n",
"!git clone https://github.com/shmilylty/OneForAll.git\n",
"!git clone https://github.com/laramies/theHarvester.git\n",
"!git clone https://github.com/gfek/Lepus.git\n",
"!git clone https://github.com/rbsec/dnscan.git\n",
"!git clone https://github.com/thewhiteh4t/FinalRecon.git\n",
"!sudo pip install -r Sublist3r/requirements.txt\n",
"!sudo pip install -r knock/requirements.txt\n",
"!sudo pip install -r OneForAll/requirements.txt\n",
"!sudo pip install -r theHarvester/requirements/base.txt\n",
"!sudo pip install -r Lepus/requirements.txt\n",
"!sudo pip install -r dnscan/requirements.txt\n",
"!sudo pip install -r FinalRecon/requirements.txt\n",
"\n",
"!sudo pip install anubis-netsec\n",
"!sudo pip install bbot\n",
"\n",
"!curl -LO https://github.com/findomain/findomain/releases/latest/download/findomain-linux.zip\n",
"!unzip findomain-linux.zip\n",
Expand All @@ -63,100 +56,72 @@
"\n",
"!wget https://raw.githubusercontent.com/bebasid/bebasid/master/dev/scripts/scan.py\n",
"\n",
"# ENTER DOMAIN NAME\n",
"domain = \"example.com\""
"!echo \"INSTALLATION DONE - ALL SET\""
],
"metadata": {
"id": "r1PdqyEf3F-D"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 1 | Sublist3r**"
],
"metadata": {
"id": "A-HtOsDX3ADB"
}
},
{
"cell_type": "code",
"source": [
"!python Sublist3r/sublist3r.py -d {domain}"
],
"metadata": {
"id": "5W2wh4VN3yfD"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 2 | knock**"
],
"metadata": {
"id": "ycUsl8_e3FSv"
}
},
{
"cell_type": "code",
"source": [
"!python knock/knockpy.py {domain}"
"# ENTER DOMAIN NAME\n",
"domain = \"domain.com\"\n",
"\n",
"!echo \"The domain $domain is set\""
],
"metadata": {
"id": "WQdRuhia43aa"
"id": "JvHMrYjxpQNt"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 3 | OneForAll**"
"**Subdomain Finder 1 | Sublist3r**"
],
"metadata": {
"id": "P-urQ2_XOMo0"
"id": "A-HtOsDX3ADB"
}
},
{
"cell_type": "code",
"source": [
"!python OneForAll/oneforall.py --target {domain} run\n",
"!cat OneForAll/results/{domain}.csv"
"!python Sublist3r/sublist3r.py -d {domain}"
],
"metadata": {
"id": "12ZP1dioOOwR"
"id": "5W2wh4VN3yfD"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 4 | theHarvester**"
"**Subdomain Finder 2 | knock**"
],
"metadata": {
"id": "PEwrdxMQP6Ff"
"id": "ycUsl8_e3FSv"
}
},
{
"cell_type": "code",
"source": [
"!python theHarvester/theHarvester.py -d {domain} -b all"
"!python knock/knockpy.py {domain}"
],
"metadata": {
"id": "S3rW16GnP4xC"
"id": "WQdRuhia43aa"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 5 | Nmap**"
"**Subdomain Finder 3 | Nmap**"
],
"metadata": {
"id": "VF3TarpxXz91"
Expand All @@ -176,27 +141,7 @@
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 6 | Lepus**"
],
"metadata": {
"id": "OLdeyjSVYd5e"
}
},
{
"cell_type": "code",
"source": [
"!python Lepus/lepus.py {domain}"
],
"metadata": {
"id": "YO2TDODRYeUe"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 7 | Findomain**"
"**Subdomain Finder 4 | Findomain**"
],
"metadata": {
"id": "-5u6VBw3atFf"
Expand All @@ -216,7 +161,7 @@
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 8 | Anubis**"
"**Subdomain Finder 5 | Anubis**"
],
"metadata": {
"id": "EGAeepT33Gdf"
Expand All @@ -236,7 +181,7 @@
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 9 | dnscan**"
"**Subdomain Finder 6 | dnscan**"
],
"metadata": {
"id": "1TyYbb1QerLi"
Expand All @@ -256,27 +201,7 @@
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 10 | bbot**"
],
"metadata": {
"id": "dyplQe_Zfc72"
}
},
{
"cell_type": "code",
"source": [
"!bbot -t {domain} -f subdomain-enum -y"
],
"metadata": {
"id": "S9hKK27wfKdj"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"**Subdomain Finder 11 | FinalRecon**"
"**Subdomain Finder 7 | FinalRecon**"
],
"metadata": {
"id": "ZU4O5VA_hUOG"
Expand Down Expand Up @@ -313,8 +238,10 @@
"domain5\n",
"\"\"\"\n",
"\n",
"clean_content = '\\n'.join(line.strip() for line in content.splitlines())\n",
"\n",
"with open('domains-unsorted.txt', 'w') as f:\n",
" f.write(content)\n",
" f.write(clean_content)\n",
"\n",
"!cat domains-unsorted.txt"
],
Expand Down

0 comments on commit a0e0455

Please sign in to comment.