Untitled

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 7

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using Mspammer.Moviestarplanet;

namespace AccountCreator;

public class Form1 : Form


{
public class PointsData
{
public int ExperiencePoints { get; set; }

public int FamePoints { get; set; }


}

public ExecuteApi2 execute = new ExecuteApi2();

public static string Username = "";

public static SessionID session = new SessionID();

private Button button1;

private TextBox textBox1;

private Button button2;

private PictureBox pictureBox1;

private Button button3;

private TextBox textBox2;

private TextBox textBox3;

private PictureBox pictureBox2;

private IContainer components = null;

public Form1()
{
InitializeComponent();
}

private static string GetNames(string Server)


{
string requestUriString =
"https://eu.mspapis.com/profileidentity/v1/profiles/names/suggestions/?
gameId=j68d&culture=" + Server + "&";
WebRequest webRequest = WebRequest.Create(requestUriString);
webRequest.Method = "GET";
WebResponse response = webRequest.GetResponse();
Stream responseStream = response.GetResponseStream();
StreamReader streamReader = new StreamReader(responseStream);
string input = streamReader.ReadToEnd();
Regex regex = new Regex("\"(.*?)\"");
StringBuilder stringBuilder = new StringBuilder();
foreach (Match item in regex.Matches(input))
{
if (item.Success)
{
stringBuilder.Append(item.Groups[1].Value);
}
}
return stringBuilder.ToString();
}

private void button1_Click(object sender, EventArgs e)


{
Username = GetNames("fr-FR");
AMF.GetEndpointForServer(textBox2.Text);
WebClient webClient = new WebClient();
MemoryStream stream = new
MemoryStream(webClient.DownloadData(AMF.Endpoint +
"//Utils/Captcha/CaptchaGenerator.ashx?username=" + Username));
pictureBox1.Image = Image.FromStream(stream);
MessageBox.Show("Successfully to create captcha!", "Success",
MessageBoxButtons.OK);
}

private void button2_Click(object sender, EventArgs e)


{
AMF.sessionID = session.GetSessionId();
WebClient webClient = new WebClient();
byte[] array = webClient.DownloadData("link to image here");

AMF.SendAMF("MovieStarPlanet.WebService.ActorService.AMFActorServiceForWeb.Validate
Captcha", new object[2] { textBox1.Text, Username });
dynamic val =
AMF.SendAMF("MovieStarPlanet.WebService.User.AMFUserServiceWeb.CreateNewUserWithSec
ureSnapshot", new object[5]
{
new
{
EyeColors = "0x0000ff",
EyeId = 68,
SkinColor = "15971965",
MouthColors = "skincolor,0xAC0000",
MouthId = 23,
NoseId = 32,
ChosenActorName = Username,
ChosenPassword = "lol123",
SkinIsMale = false,
InvitedByActorId = -1,
Clothes = new object[4]
{
new
{
y = 0,
ActorClothesRelId = -4,
Color = "0xFFFFFF",
ActorId = -1,
ClothesId = 19349,
IsWearing = 1,
x = 0
},
new
{
y = 0,
ActorClothesRelId = -8,
Color = "0x585F24,0x6E6642,0x808A36,0xC9AE8D",
ActorId = -1,
ClothesId = 19773,
IsWearing = 1,
x = 0
},
new
{
y = 0,
ActorClothesRelId = -5,
Color = "0xFFE2C6,0x000000,0x000000,0xffffff",
ActorId = -1,
ClothesId = 21301,
IsWearing = 1,
x = 0
},
new
{
y = 0,
ActorClothesRelId = -6,
Color = "0x20002",
ActorId = -1,
ClothesId = 19609,
IsWearing = 1,
x = 0
}
}
},
CreateAccountCreationChecksum(Username.ToString(), "lol123",
array, array),
null,
array,
array
});
try
{
dynamic val2 = val["actor"]["Name"].ToString();
if (val2 == Username && !((int)val["actor"]
["ActorId"]).ToString().StartsWith("-"))
{
execute.LoginAndValidate(Username, "lol123", "FR");
File.AppendAllText("Bots.txt", Username + ":lol123\n");
Clipboard.SetText(Username);
MessageBox.Show("Successfully to create account!",
"Success", MessageBoxButtons.OK);
}
}
catch
{
}
}

private static string ByteCalculator(byte[] byte_0)


{
if (byte_0.Length <= 20)
{
return BitConverter.ToString(byte_0.ToArray()).Replace("-",
string.Empty).ToLower();
}
MemoryStream memoryStream = new MemoryStream(byte_0);
try
{
List<byte> list = new List<byte>();
for (int i = 0; i < 20; i++)
{
memoryStream.Position = byte_0.Length / 20 * i;
list.Add(new BinaryReader(memoryStream).ReadByte());
}
return BitConverter.ToString(list.ToArray()).Replace("-",
string.Empty).ToLower();
}
finally
{
((IDisposable)memoryStream).Dispose();
}
}

public static string CreateAccountCreationChecksum(string ChosenActorName,


string ChosenPassword, byte[] array, byte[] array1)
{
return
Convert.ToBase64String(MD5.Create().ComputeHash(Encoding.UTF8.GetBytes(ChosenActorN
ame + ChosenPassword + ByteCalculator(array) + ByteCalculator(array1) +
"V4rYR4$d0mP333P3r")), 0, 16);
}

private void button3_Click(object sender, EventArgs e)


{
dynamic val =
AMF.SendAMF("MovieStarPlanet.WebService.User.AMFUserServiceWeb.Login", new
object[6] { Username, "lol123", null, null, null, "MSP1-Standalone:XXXXXX" });

AMF.SendAMF("MovieStarPlanet.WebService.AMFMobileService.GetUserGameStatusData",
new object[2]
{
new TicketHeader
{
Ticket =
TicketGenerator.headerTicket((string)val["loginStatus"]["ticket"])
},
Convert.ToInt64((string)val["loginStatus"]["ticket"].Split(',')
[1])
});
Console.WriteLine("[+] | Trying to level up ...");
PointsData a = new PointsData();
a.FamePoints = 6969;
a.ExperiencePoints = 6969;
Parallel.For(0, 69, new ParallelOptions
{
MaxDegreeOfParallelism = 34
}, (Action<int>)delegate
{

AMF.SendAMF("MovieStarPlanet.WebService.AMFMobileService.AddUserGamePoints",
new object[3]
{
new TicketHeader
{
Ticket =
TicketGenerator.headerTicket((string)val["loginStatus"]["ticket"])
},
Convert.ToInt64((string)val["loginStatus"]
["ticket"].Split(',')[1]),
a
});
});
}

private void Form1_Load(object sender, EventArgs e)


{
}

protected override void Dispose(bool disposing)


{
if (disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}

private void InitializeComponent()


{
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(AccountCreator.Form1));
this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button2 = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.button3 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();

((System.ComponentModel.ISupportInitialize)this.pictureBox1).BeginInit();

((System.ComponentModel.ISupportInitialize)this.pictureBox2).BeginInit();
base.SuspendLayout();
this.button1.BackColor = System.Drawing.Color.DimGray;
this.button1.Font = new System.Drawing.Font("Impact", 8.25f,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
this.button1.ForeColor = System.Drawing.Color.DeepSkyBlue;
this.button1.Location = new System.Drawing.Point(12, 188);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(227, 31);
this.button1.TabIndex = 0;
this.button1.Text = "Generate Captcha";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(button1_Click);
this.textBox1.BackColor = System.Drawing.Color.DimGray;
this.textBox1.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox1.Font = new System.Drawing.Font("Impact", 8.25f,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
this.textBox1.ForeColor = System.Drawing.Color.DeepSkyBlue;
this.textBox1.Location = new System.Drawing.Point(12, 161);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(227, 21);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "Captcha";
this.button2.BackColor = System.Drawing.Color.DimGray;
this.button2.Font = new System.Drawing.Font("Impact", 8.25f,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
this.button2.ForeColor = System.Drawing.Color.DeepSkyBlue;
this.button2.Location = new System.Drawing.Point(12, 225);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(227, 31);
this.button2.TabIndex = 2;
this.button2.Text = "Create Account";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(button2_Click);
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.Location = new System.Drawing.Point(12, 299);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(227, 48);
this.pictureBox1.SizeMode =
System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
this.button3.BackColor = System.Drawing.Color.DimGray;
this.button3.Font = new System.Drawing.Font("Impact", 8.25f,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
this.button3.ForeColor = System.Drawing.Color.DeepSkyBlue;
this.button3.Location = new System.Drawing.Point(12, 262);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(227, 31);
this.button3.TabIndex = 4;
this.button3.Text = "Level Up Acc";
this.button3.UseVisualStyleBackColor = false;
this.button3.Click += new System.EventHandler(button3_Click);
this.textBox2.BackColor = System.Drawing.Color.DimGray;
this.textBox2.BorderStyle =
System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox2.Font = new System.Drawing.Font("Impact", 8.25f,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
this.textBox2.ForeColor = System.Drawing.Color.DeepSkyBlue;
this.textBox2.Location = new System.Drawing.Point(12, 134);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(227, 21);
this.textBox2.TabIndex = 5;
this.textBox2.Text = "Server";
this.textBox2.TextChanged += new
System.EventHandler(textBox2_TextChanged);
this.textBox3.BackColor = System.Drawing.Color.Black;
this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox3.Font = new System.Drawing.Font("Ink Free", 14.25f,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
this.textBox3.ForeColor = System.Drawing.Color.White;
this.textBox3.Location = new System.Drawing.Point(45, 12);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(210, 24);
this.textBox3.TabIndex = 6;
this.textBox3.Text = "Made by Sanft#8561";
this.pictureBox2.BackgroundImage =
(System.Drawing.Image)resources.GetObject("pictureBox2.BackgroundImage");
this.pictureBox2.Location = new System.Drawing.Point(33, 32);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(191, 96);
this.pictureBox2.TabIndex = 7;
this.pictureBox2.TabStop = false;
base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.BackgroundImage =
(System.Drawing.Image)resources.GetObject("$this.BackgroundImage");
base.ClientSize = new System.Drawing.Size(257, 354);
base.Controls.Add(this.pictureBox2);
base.Controls.Add(this.textBox3);
base.Controls.Add(this.textBox2);
base.Controls.Add(this.button3);
base.Controls.Add(this.pictureBox1);
base.Controls.Add(this.button2);
base.Controls.Add(this.textBox1);
base.Controls.Add(this.button1);
this.Cursor = System.Windows.Forms.Cursors.Cross;
this.ForeColor = System.Drawing.Color.Indigo;
base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
base.Name = "Form1";
this.Text = "SanftX - Bot Gen";
base.Load += new System.EventHandler(Form1_Load);
((System.ComponentModel.ISupportInitialize)this.pictureBox1).EndInit();
((System.ComponentModel.ISupportInitialize)this.pictureBox2).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}

private void textBox2_TextChanged(object sender, EventArgs e)


{
}
}

You might also like