From 7fb18864eebf693f9abaea990ce1b483683fcb95 Mon Sep 17 00:00:00 2001 From: Frost The Fox Date: Fri, 26 Aug 2016 15:20:06 -0400 Subject: [PATCH] saving stuff before line ending fix --- .gitattributes | 2 +- .gitmodules | 2 +- config.js | 14 +++++++------- index.js | 7 +++---- install.bat | 1 + 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitattributes b/.gitattributes index bdb0cab..6275e5f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ # Auto detect text files and perform LF normalization -* text=auto +* text=eol=lf # Custom for Visual Studio *.cs diff=csharp diff --git a/.gitmodules b/.gitmodules index d894bed..19d4526 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "PogoPlayer"] path = PogoPlayer - url = https://github.com/MRokas/PogoPlayer.git + url = git://github.com/MRokas/PogoPlayer.git diff --git a/config.js b/config.js index 6442eeb..a75d4ad 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,7 @@ var config = { // Starts gen from startNumber to endNumber, determining how many accounts are made startNum:0, -endNum:10, +endNum:2, // Creation Options // Use nicknames file, or just append numbers to username? @@ -15,17 +15,17 @@ screenshotOnFailure:true, // Creation Requirements // Keep the '', User- & display name. Make sure any "(username + number)@domain.com" is 100% unique, and is 6 characters minimum, but under 14 characters after the numbers are applied. -username:"CHANGEME", +username:"countryranq", // If you set randomPassword to 'false' above change this to your chosen password (so you have same password for all accounts) -password:"CHANGEME", +password:"NOSTATIC", // Enter your email address name. If your address is email@domain.com you'd enter 'email' -emailUser:"email", +emailUser:"frost", // Domain of email address. If your address is email@domain.com you'd enter 'domain.com' -emailDomain:"gmail.com", +emailDomain:"frostthefox.pw", // Location Latitude for initial login -latitude:"36.54596", +latitude:"40.6706", // Location Longitude for initial login -longitude:"-79.22247", +longitude:"78.2386", // Country code (e.g. BE, FR, US, CA) country:"US" }; diff --git a/index.js b/index.js index 4e9f2cb..31a7743 100644 --- a/index.js +++ b/index.js @@ -24,8 +24,6 @@ var lon = configFile.longitude; var country = configFile.country; // End Config File Imports -// Reports of changing this tossing errors so i didnt touch -var dob = "1990-01-01"; // Date of birth, yyyy-mm-dd var outputFile = "PogoPlayer/accounts.csv"; // File which will contain the generated "username password" combinations. var outputFormat = "ptc,%NICK%,%PASS%,%LAT%,%LON%,%UN%\r\n"; // Format used to save the account data in outputFile. Supports %NICK%, %PASS%. @@ -134,7 +132,8 @@ function fillFirstPage(ctr) { } nightmare.evaluate(function(data) { - document.getElementById("id_dob").value = data.dob; + // Set random date between Jan 01, 1970 and now, then add 18 years to make sure "legal" + document.getElementById("id_dob").value = new Date((new Date).getTime() - (Math.random() * (new Date).getTime()) - 18*365*24*60*60*1000 ); var els = document.getElementsByName("id_country"); for(var i = 0; i < els.length; i++) { @@ -142,7 +141,7 @@ function fillFirstPage(ctr) { } return document.getElementById("id_dob").value; - }, { dob: dob, country: country }) + }, { country: country }) .click("form[name='verify-age'] [type=submit]") .wait("#id_username") .then(function() { diff --git a/install.bat b/install.bat index d618943..b882e42 100644 --- a/install.bat +++ b/install.bat @@ -24,5 +24,6 @@ if not "%errorlevel%" == "0" ( ) ) ) +@echo on python config.py pause