initial commit

This commit is contained in:
manalejandro 2018-07-11 00:37:33 +02:00
commit a08fa4d353
4 changed files with 184 additions and 0 deletions

18
README.md Normal file
View File

@ -0,0 +1,18 @@
## webscan with `Tor`
Need one tor instance
# apt install tor
$ npm install
or
$ yarn
$ node index http://www.congreso.es
Found: http://www.congreso.es/robots.txt
Found: http://www.congreso.es/favicon.ico
Found: http://www.congreso.es/web/
## License
MIT

27
index.js Normal file
View File

@ -0,0 +1,27 @@
const fs = require('fs'),
request = require('request'),
Agent = require('socks5-http-client/lib/Agent'),
host = process.argv[2]
fs.readFile(__dirname + '/path.txt', 'utf8', (err, data) => {
if (err) console.log(err)
else data.split('\n').map(path => {
if (path.length > 0)
request({
url: host + path,
method: 'GET',
encoding: 'binary',
headers: {
'User-Agent': 'Mozilla'
},
agentClass: Agent,
agentOptions: {
socksPort: 9050
}
}, (error, response, body) => {
if (error) console.log(error)
else if (response.statusCode === 200)
console.log('Found: ' + host + path)
})
})
})

22
package.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "webscan",
"version": "0.0.1",
"private": true,
"readme": "README.md",
"description": "Simple Web Scanner with Tor",
"main": "index.js",
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/manalejandro/webscan"
},
"bugs": {
"url": "https://gitlab.com/manalejandro/webscan/issues"
},
"author": "manalejandro@gmail.com",
"license": "MIT",
"dependencies": {
"request": "^2.87.0",
"socks5-http-client": "^1.0.4"
}
}

117
path.txt Normal file
View File

@ -0,0 +1,117 @@
/account/
/accounts/
/adm/
/admin/
/administrator/
/admin.php
/ar/
/backup/
/backups/
/backup.tar.gz
/backup.tgz
/backup.zip
/.bash_history
/bitcoin.php
/board/
/c99.php
/conf/
/config/
/config.php
/content/
/controlpanel/
/cpanel/
/data/
/db.sql
/de/
/demo/
/description.json
/doc/abc.php
/download.php
/downloads/
/dump.gz
/dump.sql
/dump.sql.bz2
/dump.sql.gz
/dump.sql.zip
/dump.tar.gz
/dump.tgz
/dump.zip
/en/
/error_log
/es/
/etc/
/favicon.ico
/FCKeditor/
/file/
/file.php
/files/
/foro/
/forum/
/forums/
/fr/
/.git/index
/hidden/
/home/
/home.php
/.htaccess
/icons/abc.php
/iimzwyg
/inc/
/include/
/includes/
/index(1).php
/index(2).php
/index.php~
/index.php.1
/install/
/install.php
/log/
/login/
/login.php
/logs/
/mysql.tar.gz
/mysql.tgz
/mysql.zip
/new/
/nice%20ports%2C/Tri%6Eity.txt%2ebak
/old/
/phpbb/
/phpinfo
/phpinfo.php
/phpmyadmin/
/pjiohep.php
/pma/
/priv/
/private/
/private_key
/register
/register.php
/rikjtvgc/
/robots.txt
/secret/
/server-info
/server-status
/settings.php
/shell.php
/site/
/site.tar.gz
/site.tgz
/site.zip
/sql.tar.gz
/sql.tgz
/sql.zip
/.ssh/
/stats/
/status
/.svn/
/test/
/tests/
/upload/
/upload.php
/uploads/
/wallet.dat
/wallet.zip
/web/
/webalizer/
/webdav/
/wp-content/uploads/file-manager/log.txt