Skip to content

Commit

Permalink
saving stuff before line ending fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostTheFox committed Aug 26, 2016
1 parent 4789a48 commit 7fb1886
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
* text=eol=lf

# Custom for Visual Studio
*.cs diff=csharp
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "PogoPlayer"]
path = PogoPlayer
url = https://github.com/MRokas/PogoPlayer.git
url = git://github.com/MRokas/PogoPlayer.git
14 changes: 7 additions & 7 deletions config.js
Original file line number Diff line number Diff line change
@@ -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?
Expand All @@ -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"
};
Expand Down
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%.
Expand Down Expand Up @@ -134,15 +132,16 @@ 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++) {
els[i].value = data.country;
}

return document.getElementById("id_dob").value;
}, { dob: dob, country: country })
}, { country: country })
.click("form[name='verify-age'] [type=submit]")
.wait("#id_username")
.then(function() {
Expand Down
1 change: 1 addition & 0 deletions install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ if not "%errorlevel%" == "0" (
)
)
)
@echo on
python config.py
pause

0 comments on commit 7fb1886

Please sign in to comment.