proxygrabber
Advanced tools
Comparing version 1.0.1 to 1.0.2
#! /usr/bin/env node | ||
console.log('proxy grabbing'); | ||
var shell = require('shelljs'); | ||
var program = require('commander'); | ||
var output = "result.txt" | ||
program | ||
.option('-o, --output <output>', 'Where to save de result, default result.txt.') | ||
.parse(process.argv); | ||
if (program.output) output = program.output; | ||
shell.exec('\ | ||
curl -s -connect-timeout 5 --retry 3 "http://www.sslproxies.org" | \ | ||
grep -E "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}" | \ | ||
sed "s/<\\/td><td>/ /g" | \ | ||
sed "s/<tr><td>/ /g" | \ | ||
awk \'{print $1,$2}\' | \ | ||
sed "s/ /:/g" | \ | ||
grep -E "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}:[0-9]{1,5}" \ | ||
| tee ' + output) | ||
.stdout; | ||
shell.exec('\ | ||
curl -s --connect-timeout 5 --retry 3 "http://gatherproxy.com/proxylist/port/8080" | \ | ||
grep -Eo "([0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4})" | \ | ||
while read var; do echo $var:8080; done\ | ||
| tee ' + output, | ||
{"silent": true}) | ||
.stdout; | ||
shell.exec('curl -s --connect-timeout 5 --retry 3 "http://proxyrox.com/?p=9" | \ | ||
grep "/proxy/" | \ | ||
cut -f2 -d ">" | \ | ||
cut -f3 -d"/" | \ | ||
sed "s/-/:/g" | \ | ||
sed \'s/"//g\' | \ | ||
grep -E "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}:[0-9]{1,5}"\ | ||
| tee ' + output,{"silent":true}).stdout; | ||
shell.exec('curl -s --connect-timeout 5 --retry 3 \ | ||
"https://proxy-list.org/english/search.php?search=ssl-no&country=any&type=any&port=any&ssl=no" | \ | ||
grep ">Proxy(" | \ | ||
cut -f2 -d "\'" | \ | ||
while read var; do\ | ||
echo $var | base64 --decode ;\ | ||
echo " ";\ | ||
done\ | ||
| tee ' + output,{"silent":true}).stdout; | ||
shell.exec('curl -s --connect-timeout 5 --retry 3 "https://free-proxy-list.net/" | \ | ||
grep -E "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}" | \ | ||
sed "s/<\\/td><td>/ /g" | \ | ||
sed "s/<tr><td>/ /g" | \ | ||
awk \'{print $1,$2}\' | \ | ||
sed "s/ /:/g" | \ | ||
grep -E "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}:[0-9]{1,5}"\ | ||
| tee ' + output,{"silent":true}).stdout; |
{ | ||
"name": "proxygrabber", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -11,4 +11,4 @@ "main": "index.js", | ||
"license": "ISC", | ||
"bin":{ | ||
"proxygrabber":"bin/proxy_grabber.js" | ||
"bin": { | ||
"proxygrabber": "bin/proxy_grabber.js" | ||
}, | ||
@@ -18,3 +18,7 @@ "repository": { | ||
"url": "https://github.com/gagginaspinnata/proxygrabber.git" | ||
}, | ||
"dependencies": { | ||
"commander": "^2.9.0", | ||
"shelljs": "^0.6.0" | ||
} | ||
} |
@@ -1,1 +0,5 @@ | ||
Prova | ||
What is it | ||
========== | ||
This is a really simple Command Line utility who scrapes some sites for proxies searching. | ||
It just save the output into a file |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2482
4
50
5
0
2
+ Addedcommander@^2.9.0
+ Addedshelljs@^0.6.0
+ Addedcommander@2.20.3(transitive)
+ Addedshelljs@0.6.1(transitive)