Skip to content

Instantly share code, notes, and snippets.

@gearbolt
gearbolt / 2cap.js
Created November 21, 2017 18:14 — forked from thadclay/2cap.js
undefeated raffle script (use node undefeated.js to run it)
var request = require('request');
var getToken = function(sitekey, key, callback) {
var twoCapID;
var checkCaptcha = function() {
request({
url: 'http://2captcha.com/res.php',
method: 'get',
qs: {
key: key,
@gearbolt
gearbolt / 2cap.js
Created November 21, 2017 19:56 — forked from dzt/2cap.js
undefeated raffle script (use node undefeated.js to run it)
var request = require('request');
var getToken = function(sitekey, key, callback) {
var twoCapID;
var checkCaptcha = function() {
request({
url: 'http://2captcha.com/res.php',
method: 'get',
qs: {
key: key,
ACCOUNTFILE="accounts.txt"
PROXYFILE="proxies.txt"
MAXTHREADS=50
OUTPUTFILE="orderstatus.txt"
MININTERVAL=1
try:
PROXYLIST=open(PROXYFILE,'r').read().split("\n")
PROXYLIST=[p.strip() for p in PROXYLIST if p.strip()!=""]
except:
ACCOUNTFILE="accounts.txt"
PROXYFILE="proxies.txt"
MAXTHREADS=50
OUTPUTFILE="entries.txt"
PRODUCTID="cdcb1066-2c38-5ec7-990a-b9cdf6387269" # US OW release
MININTERVAL=1
try:
PROXYLIST=open(PROXYFILE,'r').read().split("\n")
PROXYLIST=[p.strip() for p in PROXYLIST if p.strip()!=""]
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
MAXTHREADS=10
ACCFILENAME="accounts.txt"
VERIFIEDACCFILENAME="verifiedaccounts.txt"
@gearbolt
gearbolt / upload.cs
Created October 23, 2023 10:31 — forked from DavidDeSloovere/upload.cs
SFTP upload with SSH.NET
const string host = "domainna.me";
const string username = "chucknorris";
const string password = "norrischuck";
const string workingdirectory = "/highway/hell";
const string uploadfile = @"c:\yourfilegoeshere.txt";
Console.WriteLine("Creating client and connecting");
using (var client = new SftpClient(host, port, username, password))
{
client.Connect();