-
Private
Sure C# VS2015 Console
Code:
using System;
using System.IO;
namespace AuthGenerator
{
class Program
{
static void Main(string[] args)
{
int i = 1;
foreach (string line in File.ReadLines("accounts.txt"))
{
try
{
string[] data = line.Split(':');
string auth = $"{{ \"AuthType\": \"ptc\",\n\"GoogleRefreshToken\": null,\n\"PtcUsername\": \"{data[0]}\",\n\"PtcPassword\": \"{data[1]}\",\n\"GoogleUsername\": null,\n\"GooglePassword\": null }}";
string path = Environment.CurrentDirectory + $"\\Acc{i}";
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
File.WriteAllText(path + "\\auth.json", auth);
i++;
}
catch(Exception e)
{
Console.WriteLine("Error at Bot " + i + ": " + e);
Console.ReadLine();
Environment.Exit(0);
}
}
}
}
}
-
Post Thanks / Like - 3 Thanks
-
Corporal
Thanks man, will come in useful holding on to this code 
I hope you don't mind, I made some VERY minor tweaks to make the output code a little more structured.
Code:
using System;
using System.IO;
namespace AuthGenerator
{
class Program
{
static void Main(string[] args)
{
int i = 0;
foreach (string line in File.ReadLines("accounts.txt"))
{
try
{
string[] data = line.Split(':');
string auth = $"{{ \r\n\"AuthType\": \"ptc\",\r\n\"GoogleRefreshToken\": null,\r\n\"PtcUsername\": \"{data[0]}\",\r\n\"PtcPassword\": \"{data[1]}\",\r\n\"GoogleUsername\": null,\r\n\"GooglePassword\": null \r\n}}";
string path = Environment.CurrentDirectory + $"\\Bot{i}";
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
File.WriteAllText(path + "\\auth.json", auth);
i++;
}
catch (Exception e)
{
Console.WriteLine("Error at Bot " + i + ": " + e);
Console.ReadLine();
Environment.Exit(0);
}
}
}
}
}
Download from Mega.nz << Compiled exe.
Virustotal - 1 False Positive
VirusTotal
All credits to MyDragon1 for the program.
Last edited by JakeP; 08-01-2016 at 06:07 PM.
-
Member
can anyone help, when I try to run nothing appears, no text nothing. I just hangs then closes. Am I missing a step or requirement?
windows 10
-
Member
-
Corporal
Originally Posted by
wakewakewakaranai
can anyone help, when I try to run nothing appears, no text nothing. I just hangs then closes. Am I missing a step or requirement?
windows 10
Are you talking about the account creator?
If so, have you installed RubyInstaller for Windows?
Once you have done that, you need to install nokogiri by typing "gem install nokogiri" into the command prompt.
I may have missed a required repository, but try those then run the application again.
-
i know its probably asking a bit much, but any chance to add an option to have it user the same password all the time? would make it easier for using with map services lol
-
Member
-
Member
With both those AuthGens I get IndexOutOfRangeException error any ideas JakeP or MyDragon1?
-
Member
can someone help me please?
when i try to execute the application happens this error: FATAL ERROR: Failed to create process (C:\Users\win\AppData\Local\Temp\ocr52B4.tmp\bin\ruby.exe): 216 how can i fix it?
-
Member
Took 15 hours to learn new language and to modified few code that cause bot to freeze up and had to break bot to pieces to debug the source and find where was the issue and how to re-code it better, i'm glad is working with my on custom username and password and I can tell it how many account I want
Last edited by c0san1j; 08-01-2016 at 09:05 PM.
-
Member
Originally Posted by
c0san1j
Took 15 hours to learn new language and to modified few code that cause bot to freeze up and had to break bot to pieces to debug the source and find where was the issue and how to re-code it better, i'm glad is working with my on custom username and password and I can tell it how many account I want

Feel free to share
-
Member
Originally Posted by
JakeP
Are you talking about the account creator?
If so, have you installed RubyInstaller for Windows?
Once you have done that, you need to install nokogiri by typing "gem install nokogiri" into the command prompt.
I may have missed a required repository, but try those then run the application again.
I tried what you suggested but nothing has changed Im afraid, any more suggestions?
-
Thank you very much mydragon1
.
-
Originally Posted by
mydragon1
Here you go:
Zippyshare.com - AuthGenerator.exe
Creates a folder with auth.json for each line in accounts.txt usings seperator ":".
Just put it in same folder as accounts.txt
Wow, thank you! Works great
-
Private
Originally Posted by
Axeon1g
With both those AuthGens I get IndexOutOfRangeException error any ideas JakeP or MyDragon1?
Can you make a screenshot? Is your file named accounts.txt and has entries in format name
w?
-
Post Thanks / Like - 1 Thanks
Axeon1g (1 members gave Thanks to mydragon1 for this useful post)