New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

proxygrabber

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxygrabber - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.npmignore

60

bin/proxy_grabber.js
#! /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;

10

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc