Skip to content

Commit

Permalink
enable option to add + or . addressing
Browse files Browse the repository at this point in the history
  • Loading branch information
samipmainali committed Jul 27, 2023
1 parent 6faf6b8 commit a670fd3
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Misc/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static void Read()
Variables.ismailcatchall = Config.res["Is_Domain_with_catchall"].ToString().ToLower();
Variables.Enable_Email_Verify = Config.res["Enable_Mail_Verifier"].ToString().ToLower();
Variables.Show_Error = Config.res["Show_Error"].ToString().ToLower();
Variables.plusordotaddressing = Config.res["+ or . addressing"].ToString();
Variables.client_token = Config.res["Client_Token"].ToString();
}
catch
Expand Down Expand Up @@ -127,6 +128,10 @@ public static string Create()
"Show_Error",
"y or n"
},
{
"+ or . addressing",
"+ or ."
},
{
"Client_Token",
"xxx"
Expand Down
1 change: 1 addition & 0 deletions Misc/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ internal class Variables
public static string MailEmail;
public static string CustomPassword;
public static string Show_Error;
public static string plusordotaddressing;

//FOR SPOTIFY

Expand Down
34 changes: 31 additions & 3 deletions Modules/Accountgenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Random = System.Random;
using Console = Colorful.Console;
using RandomNameGenerator;
using System.Text;

namespace Spotgen.Modules
{
Expand Down Expand Up @@ -81,8 +82,27 @@ public static void Check()
email = accountHolderName + "@" + Variables.MailDomain;
}
else
{
email = Variables.MailUsername + "+" + accountHolderName + "@" + Variables.MailDomain;
{
if(Variables.Enable_Email_Verify != "y")
{
email = accountHolderName + PasswordGenerator.Generate(10, "0123456789") + "@" + Variables.MailDomain;
}
else
{
if(Variables.plusordotaddressing == "+")
{
email = Variables.MailUsername+ "+" + accountHolderName + PasswordGenerator.Generate(10, "0123456789") + "@" + Variables.MailDomain;
}
else if (Variables.plusordotaddressing == ".")
{
email = Variables.MailUsername + "." + accountHolderName + PasswordGenerator.Generate(10, "0123456789") + "@" + Variables.MailDomain;
}
else
{
email = Variables.MailUsername + "+" + accountHolderName + PasswordGenerator.Generate(10, "0123456789") + "@" + Variables.MailDomain;
}
}

}
string password;
if(Variables.CustomPassword.Length >= 8)
Expand Down Expand Up @@ -173,12 +193,20 @@ public static void Check()
Variables.Generated++;
Console.WriteLine("[+] ~ " + email + ":" + password, Color.Green);
}
else
{
Save.Hit(email + ":" + password);
Variables.Checked++;
Variables.Cpm++;
Variables.Generated++;
Console.WriteLine("[+] ~ " + email + ":" + password, Color.Green);
}
}
else
{
if(Variables.Show_Error == "y")
{
Console.WriteLine("The bytes length received is: "+genrequest_byte.Length);
Console.WriteLine(Encoding.UTF8.GetString(genrequest_byte, 0, genrequest_byte.Length));
}
Variables.Error++;
}
Expand Down
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ static void Settings()
Prefix.Print("10", "Is Mail With Catchall: " + Variables.ismailcatchall + "\n");
Prefix.Print("11", "Enable Email Verify: " + Variables.Enable_Email_Verify + "\n");
Prefix.Print("12", "Show Error: " + Variables.Show_Error + "\n");
Prefix.Print("13", "Client Token: " + Variables.client_token + "\n");
Prefix.Print("13", "+ or . Addressing: " + Variables.plusordotaddressing + "\n");
Prefix.Print("14", "Client Token: " + Variables.client_token + "\n");
Prefix.Print("!", "Edit config.json!\n");
Prefix.Print("B", "Back\n\n");
Prefix.Print(">", "");
Expand Down

0 comments on commit a670fd3

Please sign in to comment.