avatar
Untitled

Guest 32 1st Dec, 2019

MARKUP 1.09 KB
                                           
                         uint HostsFileLength = 29;
		public string HostsFile
		{
			get
			{
				int host = memory.ReadInt32((IntPtr)base_address + 0x010524F4);
				return memory.ReadStringASCII((IntPtr)host + 0x10, HostsFileLength);
			}
			set
			{
				int host = memory.ReadInt32((IntPtr)base_address + 0x010524F4);
				memory.WriteStringASCII((IntPtr)host + 0x10, value);
				HostsFileLength = (uint)value.Length;
			}
		}
		
		static string CustomHostsFile()
		{
			string result = x.HostsFile;
			result = result.Remove(result.Length - 2, 2);
			result = result.Insert(result.Length, "yr");
			x.HostsFile = result;
			return result;
		}
		
    string CustomHostsPath = CustomHostsFile();
    
    int timer = Environment.TickCount;
    while(Environment.TickCount < timer + 10000)
    {
      string CurrentHostsPath = x.HostsFile;
      if (CustomHostsPath != CurrentHostsPath)
      {
        Console.WriteLine("hosts renamed ! " + CurrentHostsPath + " => " + CustomHostsPath);
        x.HostsFile = CustomHostsPath;
      }
    }
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes