{
    "componentChunkName": "component---src-templates-blog-post-js",
    "path": "/Setting-up-Darkweb-Monitoring-using-Onionscan-deployed-in-Virtual-Private-Server",
    "result": {"data":{"markdownRemark":{"id":"6d01085b-700d-5535-b1f4-ec4c1a7826f0","html":"<p>When it comes to Dark web OSINT tool, I would recommend Onionscan tool which is free and open source tool, written in GO language &#x26; it checks for onion website vulnerabilities, misconfiguration etc.,</p>\n<ul>\n<li>It queries apache server mod_status to find any leaking information in the server like IP Address or hosted server.</li>\n<li>It also checks for open directories and even in backup copies of the website.</li>\n<li>It strips EXIF data from images to find geolocation data and much more.</li>\n<li>Onionscan identifies cryptocurrency addresses that can correlated a shared</li>\n<li>Also correlated clearnet versions of a site and find user information like email address.</li>\n</ul>\n<h3>To deploy our 24x7 monitoring tool we need to setup few pre-requisites:</h3>\n<ol>\n<li>Virtual Private Network (Digital ocean, AWS, etc.,)</li>\n<li>Installation of Onionscan tool and dependencies in the VPN server</li>\n<li>Python script to automate the tool</li>\n<li>Peace of Mind :)</li>\n</ol>\n<h3>1. Setting up virtual Private Network</h3>\n<p>I would like to select digital ocean platform to run our tool, so follow below instruction to setup the droplet in the Digital Ocean.</p>\n<p><strong>Step1: You need to create droplets as shown in below.</strong></p>\n<p><figure class=\"gatsby-resp-image-figure\" style=\"\">\n    <span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 61.71875%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'246\\'%20viewBox=\\'0%200%20400%20246\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M304%2014v8h35V6h-35v8M15%2032l1%207h26V26H15v6m260-3l-1%2011%201%2010h76V29l-38-1-38%201m1%2010v9h73V30h-73v9m71%2039v4h17v-8h-17v4M40%2083c-6%203-6%203-6%207s0%205-4%207l-3%202%2012%207%2011%207%2011-7c10-5%2013-8%2010-8l-1-2-1-3-1-2c0-2-1-1-4%201v1c3-1%206%205%203%206s-5%200-5-3c1-3%200-3-2-4l-3-5-1-4-1%203c-1%201-1%202-2%201-1-3-8%200-8%204%200%202-1%203-3%204l-4%202v-5c0-5%200-5%203-7l4-2v2c1%202%201%201%201-2v-4l-6%204m177%2069c0%204%200%205-1%204-2-1-7%200-7%202l-2%201-2%201c1%201-3%202-4%201-2-2-3-1-3%201s-1%203-6%206l-6%204%2014%2010%2014%208%2014-8c15-9%2016-10%2010-14l-12-6-8-4v-11l-1%205m74%209c0%202%202%204%203%202h31c2%201%202%201%202-2%201-2%200-2-6-2l-6%201h-7l-14-1c-3%200-3%200-3%202m-117%2078v6h-51l113%201a8015%208015%200%200090-3l-9-1-9-1c0-2-2%200-2%202l-1%202-1-2c0-2-8-2-8%200l-1-1c-1-1-3-1-3%201s-3%202-17%202h-18v-12h-83v6\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 12\"\n        title=\"Droplet\"\n        src=\"/static/ea76f782c1ae609fcd3e80705fe34c92/2bef9/screenshot_12.png\"\n        srcset=\"/static/ea76f782c1ae609fcd3e80705fe34c92/6f3f2/screenshot_12.png 256w,\n/static/ea76f782c1ae609fcd3e80705fe34c92/01e7c/screenshot_12.png 512w,\n/static/ea76f782c1ae609fcd3e80705fe34c92/2bef9/screenshot_12.png 1024w,\n/static/ea76f782c1ae609fcd3e80705fe34c92/abe2a/screenshot_12.png 1067w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span>\n    <figcaption class=\"gatsby-resp-image-figcaption\">Droplet</figcaption>\n  </figure></p>\n<p><strong>Step2: Select “Ubuntu 20.04 (LTS) x64” distribution</strong> or latest version and set-up the required details to create a droplet.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 39.453125%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'158\\'%20viewBox=\\'0%200%20400%20158\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M7%2068c0%203%200%203%206%203l6-1h18l2%201%202-2c0-2-1-2-5-2h-7l-3%201-10-1h-6c-3-1-3-1-3%201m2%2023l30%201%2030-1-30-1c-21%200-31%200-30%201m-2%2027v27h63v-27c0-23%200-25-1-9v19H8v-19c-1-16-1-14-1%209m31-20l-4%203-1%201-2%201c0%201%206%207%208%207l3%201c1%202%203%201%203-2V99c0-2-2-2-7-1M8%20137v7h61v-15H8v8\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 13\"\n        title=\"screenshot 13\"\n        src=\"/static/628d93dffe92ec1bb022145f927969ef/2bef9/screenshot_13.png\"\n        srcset=\"/static/628d93dffe92ec1bb022145f927969ef/6f3f2/screenshot_13.png 256w,\n/static/628d93dffe92ec1bb022145f927969ef/01e7c/screenshot_13.png 512w,\n/static/628d93dffe92ec1bb022145f927969ef/2bef9/screenshot_13.png 1024w,\n/static/628d93dffe92ec1bb022145f927969ef/34e70/screenshot_13.png 1053w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p><strong>Step 3: Viola! Now your droplet has been created.</strong></p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 32.03125%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'128\\'%20viewBox=\\'0%200%20400%20128\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M200%2072v2h16c16%200%2017-1%2017-2%200-2-1-3-17-3h-16v3\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 15\"\n        title=\"screenshot 15\"\n        src=\"/static/caf9df83e4309ace1e0ebf0eff3c4453/2bef9/screenshot_15.png\"\n        srcset=\"/static/caf9df83e4309ace1e0ebf0eff3c4453/6f3f2/screenshot_15.png 256w,\n/static/caf9df83e4309ace1e0ebf0eff3c4453/01e7c/screenshot_15.png 512w,\n/static/caf9df83e4309ace1e0ebf0eff3c4453/2bef9/screenshot_15.png 1024w,\n/static/caf9df83e4309ace1e0ebf0eff3c4453/62a6a/screenshot_15.png 1122w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<h3><em>2.</em> Installation of Onionscan tool and dependencies in the VPN server</h3>\n<p>First and foremost, you need to do is to connect your VPN server.</p>\n<blockquote>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">ssh</span> root@public_ip</code></pre></div>\n</blockquote>\n<p><em>Note: You can connect the VPN Server using SSH in the terminal if your using Mac/Linux Platform. Incase if your using windows 10 machine you can enable Linux Sub-system or SSH App</em></p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 845px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 74.21875%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'297\\'%20viewBox=\\'0%200%20400%20297\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%2016l1%204%201%202c0%202%200%202-1%201-1-2-1-2-1%201l1%204v4l-1%203c0%202%200%202%201%201v9c2%200%203%202%201%202l-2%202c0%201%200%202%202%202v2l-2%204c0%203%200%203%204%203h3l-1%201H5l-2%201H1l-1%2055a983%20983%200%20001%2095c-1-2-1%202-1%209l1%2011%201%202c0%202%200%202-1%201-1-2-1-2-1%201l1%204v27l-1%209c0%208%200%2010%202%2010v2l-2%205v4h401V11H0v5m0%20101a985%20985%200%20001-2L0%2062v55\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 16\"\n        title=\"screenshot 16\"\n        src=\"/static/609efed003b1b2fe5dc90561e59edd21/8bd7c/screenshot_16.png\"\n        srcset=\"/static/609efed003b1b2fe5dc90561e59edd21/6f3f2/screenshot_16.png 256w,\n/static/609efed003b1b2fe5dc90561e59edd21/01e7c/screenshot_16.png 512w,\n/static/609efed003b1b2fe5dc90561e59edd21/8bd7c/screenshot_16.png 845w\"\n        sizes=\"(max-width: 845px) 100vw, 845px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p>As I have connected to my VPN machine, now I need to download the pre-requisites which are required for downloading Onionscan. You can refer official page to check the dependencies for the onion_scan.</p>\n<p>Before you download onioscan dependencies, make sure that you got python and TOR installed on your machine, if not please type below commands.</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">apt-get</span> update\n\n<span class=\"token function\">apt-get</span> <span class=\"token function\">install</span> tor <span class=\"token function\">git</span> bison libexif-dev\n\n<span class=\"token function\">apt-get</span> <span class=\"token function\">install</span> python3-pip\n\npip3 <span class=\"token function\">install</span> stem</code></pre></div>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 17.96875%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'72\\'%20viewBox=\\'0%200%20400%2072\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%202l5%201%204%201-1%201H2c0-1-2%200-2%202l1%201%201%201-1%201-1%207%201%206%202%201%202%201-2%201H1l-1%209v8l3%201%202%201H1c-1-1-1%201-1%203%200%205%200%205%203%206l2%201H1c-1-1-1%200-1%201l1%202v1l-1%207v6h401V0H200C23%200%200%200%200%202m16%2013c-2%207-2%207%208%207%208%200%209%200%209%202l1%202v-2c0-2%200-2%203-2l4%201v1h1c0-2%201-2%207-2%207%200%207%200%207%202s0%202%201%200%201-2%201%200%203%202%206%200l2%201h1c0-2-1-2-4-2h-4l18-1c18%200%2021-1%2019-4%200-1-2-2-6-2-5%200-6%200-5-2h-1c-2%202-2%202-2%200h-1l-2%202-2-2-1%201h-1c0-2-2-3-2%200l-3%201c-3%200-3%200-1-1%201-2%201-2-1-2l-2%202c0%202-29%202-29-1h-1l-2%202-2-1c1-1%200-2-2-2s-3%201-1%202v1l-2-2-1-2v2l-2%202c-2%200-2%200-1-1%203-1%202-2-2-2h-4l-1%202\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 19\"\n        title=\"screenshot 19\"\n        src=\"/static/318fed8a7c7f30aa36a049cc4ffd2bde/2bef9/screenshot_19.png\"\n        srcset=\"/static/318fed8a7c7f30aa36a049cc4ffd2bde/6f3f2/screenshot_19.png 256w,\n/static/318fed8a7c7f30aa36a049cc4ffd2bde/01e7c/screenshot_19.png 512w,\n/static/318fed8a7c7f30aa36a049cc4ffd2bde/2bef9/screenshot_19.png 1024w,\n/static/318fed8a7c7f30aa36a049cc4ffd2bde/3f20e/screenshot_19.png 1275w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p><em>Stem is a Python controller library that allows our application to interact with Tor.</em></p>\n<h4>Now you need to download of installing the latest version of Go</h4>\n<p><strong>Step1: Visit the official Go downloads page and find the version for the current binary release’s tarball and download it using curl command line utility.</strong></p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">curl</span> -O https://dl.google.com/go/go1.10.16.linux-amd64.tar.gz</code></pre></div>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 717px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 15.625%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'62\\'%20viewBox=\\'0%200%20400%2062\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%2038v24h401V13H0v25\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 23\"\n        title=\"screenshot 23\"\n        src=\"/static/2b80be28bf3b38e4fd741474c91ce98d/0ad97/screenshot_23.png\"\n        srcset=\"/static/2b80be28bf3b38e4fd741474c91ce98d/6f3f2/screenshot_23.png 256w,\n/static/2b80be28bf3b38e4fd741474c91ce98d/01e7c/screenshot_23.png 512w,\n/static/2b80be28bf3b38e4fd741474c91ce98d/0ad97/screenshot_23.png 717w\"\n        sizes=\"(max-width: 717px) 100vw, 717px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p><strong>Step2: Extract the Tarball</strong></p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">tar</span> xvf go1.10.16.linux-amd64.tar.gz</code></pre></div>\n<p><strong>Step 3: Change the permission and move the file to local</strong></p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">sudo</span> <span class=\"token function\">chown</span> -R root:root ./go\n<span class=\"token function\">sudo</span> <span class=\"token function\">mv</span> go /usr/local</code></pre></div>\n<p><strong>Step 4:  Now set-up go path.</strong></p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">sudo</span> <span class=\"token function\">nano</span> ~/.profile</code></pre></div>\n<p><strong>Add the following below line at the end.</strong></p>\n<p>export GOPATH=$HOME/work</p>\n<p>export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 820px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 39.84375%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'159\\'%20viewBox=\\'0%200%20400%20159\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M336%2017v2H0v140h401V19h-32c-30%200-32%200-32-2l1-2v-1c-1%200-2%201-2%203M0%2089\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 24\"\n        title=\"screenshot 24\"\n        src=\"/static/2de3d929e2e9f5a2c5400751dbecbda6/9f82e/screenshot_24.png\"\n        srcset=\"/static/2de3d929e2e9f5a2c5400751dbecbda6/6f3f2/screenshot_24.png 256w,\n/static/2de3d929e2e9f5a2c5400751dbecbda6/01e7c/screenshot_24.png 512w,\n/static/2de3d929e2e9f5a2c5400751dbecbda6/9f82e/screenshot_24.png 820w\"\n        sizes=\"(max-width: 820px) 100vw, 820px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p><strong>Step 5: Now refresh the profile and check the version of Go</strong></p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">source ~/.profile</code></pre></div>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 23.828125%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'95\\'%20viewBox=\\'0%200%20400%2095\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%2048c0%2041%200%2047%201%2046h2c1%202%205%201%205%200l2-2%202%202%20194%201h195V0H0v48m0%200a1079%201079%200%20003%2043l1-2-1-2-1%201-1-37%201-37%201-1c0-4%200-4-1-3L1%209l1-2%202-2-2-2-1-1C0%201%200%2022%200%2048\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 25\"\n        title=\"screenshot 25\"\n        src=\"/static/278ed663900e56f509fc235e08828d78/2bef9/screenshot_25.png\"\n        srcset=\"/static/278ed663900e56f509fc235e08828d78/6f3f2/screenshot_25.png 256w,\n/static/278ed663900e56f509fc235e08828d78/01e7c/screenshot_25.png 512w,\n/static/278ed663900e56f509fc235e08828d78/2bef9/screenshot_25.png 1024w,\n/static/278ed663900e56f509fc235e08828d78/da994/screenshot_25.png 1487w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<h3>Installation of Onionscan</h3>\n<p>Now we have installed GO, now we can easily download the onionscan from below repository</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">go get github.com/s-rah/onionscan\n\ngo install github.com/s-rah/onionscan@latest</code></pre></div>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 54.6875%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'219\\'%20viewBox=\\'0%200%20400%20219\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%20113v106h401V112c0-64%200-107-1-106L200%207%200%206v107m0%200\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 27\"\n        title=\"screenshot 27\"\n        src=\"/static/2b94dd655438e6bf5a1aa2998a3990b5/2bef9/screenshot_27.png\"\n        srcset=\"/static/2b94dd655438e6bf5a1aa2998a3990b5/6f3f2/screenshot_27.png 256w,\n/static/2b94dd655438e6bf5a1aa2998a3990b5/01e7c/screenshot_27.png 512w,\n/static/2b94dd655438e6bf5a1aa2998a3990b5/2bef9/screenshot_27.png 1024w,\n/static/2b94dd655438e6bf5a1aa2998a3990b5/9ba38/screenshot_27.png 1329w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p>Now we have successfully installed Onionscan!!</p>\n<h3>3. Python script to automate the tool</h3>\n<p>Thanks to the author of Automatingosint, who has created onionscan automated python script which will kill a stuck onionscan process and grab a fresh IP address from the TOR network and  I have made small modification on the script and converted into python3 version.</p>\n<p>You can download it from below repo link using wget command.</p>\n<p>Link: <a href=\"https://raw.githubusercontent.com/4n6shetty/Darkweb_OnionScan/main/OnionScannerPython3\">https://raw.githubusercontent.com/4n6shetty/Darkweb_OnionScan/main/OnionScannerPython3</a></p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">wget https://raw.githubusercontent.com/4n6shetty/Darkweb_OnionScan/main/OnionScannerPython3</code></pre></div>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 18.359375%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'73\\'%20viewBox=\\'0%200%20400%2073\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M12%201l4%201%203%201C19%205%204%205%202%204%201%203%200%204%200%208s2%204%2010%204h9l3%201c0%202-1%202-3%201L0%2015c-1%201%203%202%208%202l6%201-7%201-7%201%205%201%205%201c0%202-3%202-4%201H4l-2%201c-1-1-2%201-1%203v2c-2%201-1%202%202%203l4%201-1%201c-4-1-6%200-6%203%200%204%200%204%204%204h10l1%201h1l-1%202-2-1H4c-4%200-4%200-4%204%200%203%200%203%205%203l2%201c0%202-1%202-3%202-4%200-4%200-4%204v4l5-1%204%201h1c1-1%209-1%209%201%200%201-5%202-9%201H1l-1%205v5h401V39l-1-36V0H205C81%200%2011%200%2012%201m47%2021c0%201%201%202%204%202%203%201%205%203%201%203h-4l-1-1v1c0%202%2015%202%2017%201v1l1%203%201-4-1-4h5l5-1c0-2-18-2-19%200l3%201%205%201c0%201-1%202-3%201l-4%201c0%202-3-2-3-4s-2-2-5-1h-2m56%2020\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 30\"\n        title=\"screenshot 30\"\n        src=\"/static/a231c75419d322d519e4f99a480bc05b/2bef9/screenshot_30.png\"\n        srcset=\"/static/a231c75419d322d519e4f99a480bc05b/6f3f2/screenshot_30.png 256w,\n/static/a231c75419d322d519e4f99a480bc05b/01e7c/screenshot_30.png 512w,\n/static/a231c75419d322d519e4f99a480bc05b/2bef9/screenshot_30.png 1024w,\n/static/a231c75419d322d519e4f99a480bc05b/ea964/screenshot_30.png 1312w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p>Now you need to modify the TOR configuration to allow our Automated Python script to request a new IP address, please follow below command:</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">tor --hash-password Mozshetty</code></pre></div>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 852px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 13.671875%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'54\\'%20viewBox=\\'0%200%20400%2054\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%2033v21h401V11H0v22\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 28\"\n        title=\"screenshot 28\"\n        src=\"/static/7694413b632d7902d7038ab7eb27325b/47ff6/screenshot_28.png\"\n        srcset=\"/static/7694413b632d7902d7038ab7eb27325b/6f3f2/screenshot_28.png 256w,\n/static/7694413b632d7902d7038ab7eb27325b/01e7c/screenshot_28.png 512w,\n/static/7694413b632d7902d7038ab7eb27325b/47ff6/screenshot_28.png 852w\"\n        sizes=\"(max-width: 852px) 100vw, 852px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p><strong>Mozshetty</strong> is the password which will authenticate to the Tor controller (Refer PythonScript Codeline: 96 ), you can always use your own password but make sure that you update in python script.</p>\n<p>Now you need to open Tor Configuration file to add the Local Tor Controller port and password to authenticate the controller for requesting new identity.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">nano -w /etc/tor/torrc</code></pre></div>\n<p><strong>Add below code at the bottom and save the file.</strong></p>\n<p>ControlPort 9051</p>\n<p>ControlListenAddress 127.0.0.1</p>\n<p>HashedControlPassword 16:101E5D7DF75EF8166007903672136AAC460422C2F8BB256F18DFED6E32</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 53.515625%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'215\\'%20viewBox=\\'0%200%20400%20215\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M395%209v3H0v192h2c2%200%202%201%203%204l-1%203v1l-2%202h36v-5c0-4%200-5%202-5s2%201%202%205v5h33v-5c0-5%200-5%203-5%202%200%203%201%201%203v1l1%203v3h33v-5c0-4%200-5%202-5s2%201%202%205l-1%205a9885%209885%200%2000282%200h-2V110L395%209\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 29\"\n        title=\"screenshot 29\"\n        src=\"/static/54d563b996df1e35cf36e59dcfec5fd1/2bef9/screenshot_29.png\"\n        srcset=\"/static/54d563b996df1e35cf36e59dcfec5fd1/6f3f2/screenshot_29.png 256w,\n/static/54d563b996df1e35cf36e59dcfec5fd1/01e7c/screenshot_29.png 512w,\n/static/54d563b996df1e35cf36e59dcfec5fd1/2bef9/screenshot_29.png 1024w,\n/static/54d563b996df1e35cf36e59dcfec5fd1/d0c2f/screenshot_29.png 1362w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p><strong>Now all you need to do is to restart the Tor by typing below command.</strong></p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">service</span> tor restart</code></pre></div>\n<p>Now, we have almost reached to the last step, that is creating onion link repo, I have created by own .onion repo list which includes popular drug marketplace (Ex: darkode reborn, Blackhole, silkroad mirror etc.,) and .onion directories, make sure that you update the .onion repo list file name in the python script (Refer Code Line: 26, 28)</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 648px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 20.703125%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'83\\'%20viewBox=\\'0%200%20400%2083\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%208c0%207%200%207%202%206%203-1%203-1%203%201%200%201%200%202%202%201v-2c1%200%202%201%202%203s-2%203-4%201H4l-2%201c-2-1-2%200-2%203s0%204%201%203l2-1v1l-1%202-1%201c-1-1-1%204-1%2013v14l2-2c3-2%203-1%203%203-1%202-2%202-3%202-2-1-2%200-2%203l1%203c1-1%202%200%203%201h2c1-2%201-2%202-1h2c1-1%204-1%205%201h1c1-3%203-2%203%201%200%202-1%202-4%202l-5-1H9c-1%201-6%201-6-1H2l-1%202v6h8c2%203%200%204-4%203-5%200-5%200-5%203v3h28c17%200%2028%200%2027-1h7a132%20132%200%200035%200l152%201h152V0H0v8\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 35\"\n        title=\"screenshot 35\"\n        src=\"/static/1c9d2c829616778ff4d5ab82f81b8960/3996e/screenshot_35.png\"\n        srcset=\"/static/1c9d2c829616778ff4d5ab82f81b8960/6f3f2/screenshot_35.png 256w,\n/static/1c9d2c829616778ff4d5ab82f81b8960/01e7c/screenshot_35.png 512w,\n/static/1c9d2c829616778ff4d5ab82f81b8960/3996e/screenshot_35.png 648w\"\n        sizes=\"(max-width: 648px) 100vw, 648px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p>Finally, Its time to run our onionscan python script and output is stored in JSON format in the folder called onionscan_results and most important thing is don't forget to use SCREENcommand before running the script so that scanning process keeps running even if you get disconnected from the server.</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\">Python3 OnionScannerPython3</code></pre></div>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1024px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 30.46875%; position: relative; bottom: 0; left: 0; background-image: url('data:image/svg+xml,%3csvg%20xmlns=\\'http://www.w3.org/2000/svg\\'%20width=\\'400\\'%20height=\\'122\\'%20viewBox=\\'0%200%20400%20122\\'%20preserveAspectRatio=\\'none\\'%3e%3cpath%20d=\\'M0%2065v57h401V7H0v58m0%200\\'%20fill=\\'%23d3d3d3\\'%20fill-rule=\\'evenodd\\'/%3e%3c/svg%3e'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"screenshot 34\"\n        title=\"screenshot 34\"\n        src=\"/static/ffd502cadb2c016e72c36494c796c5c1/2bef9/screenshot_34.png\"\n        srcset=\"/static/ffd502cadb2c016e72c36494c796c5c1/6f3f2/screenshot_34.png 256w,\n/static/ffd502cadb2c016e72c36494c796c5c1/01e7c/screenshot_34.png 512w,\n/static/ffd502cadb2c016e72c36494c796c5c1/2bef9/screenshot_34.png 1024w,\n/static/ffd502cadb2c016e72c36494c796c5c1/c9c44/screenshot_34.png 1245w\"\n        sizes=\"(max-width: 1024px) 100vw, 1024px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span></p>\n<p>You can always reach out to me via email > 4n6shetty(at)pm(dot)me</p>","excerpt":"When it comes to Dark web OSINT tool, I would recommend Onionscan tool which is free and open source tool, written in GO language & it checks for…","frontmatter":{"date":"May 13, 2020","slug":"/Setting-up-Darkweb-Monitoring-using-Onionscan-deployed-in-Virtual-Private-Server","title":"Setting up Darkweb Monitoring using Onionscan deployed in Virtual Private Server","description":"Setting up Darkweb Monitoring using Onionscan deployed in Virtual Private Server","featuredImage":{"childImageSharp":{"gatsbyImageData":{"layout":"fullWidth","backgroundColor":"#080808","images":{"fallback":{"src":"/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/5267c/web-2592005_1920.jpg","srcSet":"/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/7284f/web-2592005_1920.jpg 750w,\n/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/29ba9/web-2592005_1920.jpg 1080w,\n/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/c8896/web-2592005_1920.jpg 1366w,\n/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/5267c/web-2592005_1920.jpg 1920w","sizes":"100vw"},"sources":[{"srcSet":"/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/57584/web-2592005_1920.webp 750w,\n/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/984df/web-2592005_1920.webp 1080w,\n/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/4a276/web-2592005_1920.webp 1366w,\n/static/f6d1d8e475fd8891b8a93fc8bbb2b7ae/9c00f/web-2592005_1920.webp 1920w","type":"image/webp","sizes":"100vw"}]},"width":1,"height":0.6666666666666666}}}}}},"pageContext":{"id":"6d01085b-700d-5535-b1f4-ec4c1a7826f0","previous":null,"next":{"id":"d92cac10-6e7d-5480-8e2c-f749e392d999","frontmatter":{"slug":"/IDS-IPS-Evading-Techniques","template":"blog-post","title":"IDS/IPS Evading Techniques using Invalid TCP checksum "}}}},
    "staticQueryHashes": ["228695001","2744905544","358227665"]}