Well it kinda made sense to me but my computer didnt like it
It just seems to freeze at the rx.Matches command
I left it 10mins in case its being slow but the autoit version only takes few secs
I getting frustrated now so I gonna give up for today or rest of week lol
Code:
if (File.Exists(file) == true)
{
byte[] ba;
using (FileStream br = File.OpenRead(file))
{
ba = new byte[br.Length]; //br.Length
br.Read(ba, 0, (int)br.Length); //br.Length
}
List<char> clist = new List<char>();
foreach (byte b in ba)
clist.Add((char)b);
char[] ca = clist.ToArray();
Console.WriteLine(ca.Length); // output 6699664 so guess this bit is working, i dunno
string client = new string(ca);
Regex rx = new Regex(@".*?(8B0D(.{8})898D40F1FFFF6A01)"); //just test first one for now
Console.WriteLine("hello, im working so far");//console did say this
MatchCollection matches = rx.Matches(client);
Console.WriteLine(matches.Count); //just trying get helpful output but seems freeze at rx.matches(client)
foreach (Match mx in rx.Matches(client))
{
}
Console.WriteLine("goodbye"); //apparently he wont talk to me anymore :(
}
do u mean noobs expressions are made for autoit and need changing for c#?
i havnt got a clue how to use your code, i cant pass the existing expression to it which was my only idea to what u meant
yes, you need to change the expressions by adding \x in front of the bytes to show they're hex code. Otherwise it will look for a string with characters 8B0D (4 characters for example) instead of the 2 characters \x8B and \x0D
Regex rx = new Regex(@".*?(\x8B\x0D(.{8})\x89\x8D\x40\xF1\xFF\xFF \x6A\x01)");
ok, your method for opening the exe works for your expression (obviously), i gave up trying to convert nooobs expressions to work with it as well,
Instead I figured out how open the exe the same way as autoit does in nooobs script
Code:
FileStream inputFile = new FileStream(file, FileMode.Open);
byte[] byteBuffer = new byte[inputFile.Length];
inputFile.Read(byteBuffer, 0, (int) inputFile.Length);
StringBuilder client = new StringBuilder();
for (int i = 0; i < byteBuffer.Length; i++)
{
client.Append(byteBuffer[i].ToString("X2"));
}
Regex rx = new Regex(@"(8B0D(.{8})898D40F1FFFF6A01)");
foreach (Match mx in rx.Matches(client.ToString()))
{
Console.WriteLine("yay got match");
}
which gave me 1 match so i guess its working so far
I just need convert the rest now. I think I read somewhere here that converting is bad coz it needs lots of testing, well im a noob so my code already needs lots testing
Anyway thx for giving me the right commands to research, it did help.
have anyone ever tried writing an exact same bot/tool for pw in both autoit and c and compare the cpu and ram usage ? which one use less, and by less, does it matter much ?
I usually ran 6 clients if not more and each client has specific bot written for it, some of these bots sometimes use up to the same amount of cpu usage of the client itself and can go higher once in a while =.= (ranging from 1% - 12% cpu usage)
my cpu ends up using 95%-100% of its juice everyday, the heat is average at 80 degree celcius
here is an example of my cpu usage table from windows task manager, autoit is very cpu hungry
* btw sorry for the interruption, just want to know if c can do the same thing with less cpu usage
Segmentation fault in ubuntu 06/09/2011 - Metin2 Private Server - 2 Replies Welcome!
I have a VPS,and the VPS's Operation System Ubuntu.
When i copy the metin2 server file and server mysql to SSH,i write:"./start.sh".
And it's write: "No such file or directory"
Image: http://kephost.hu/kep/2011/06/asd_4.jpg
After i write:
"cd auth"
"./auth"
VPC - Make.sh segmentation fault 01/07/2011 - Metin2 Private Server - 22 Replies Hi,
wenn ich die Make.sh dateiausführen möchte in
Virtual pc damit meine gmstuff.quest funktioniert,
dann kommt imma eine fehler meldung:
segmentation fault
und das ganz oft
Da manche schon gesagt haben das das an der Honkonglist liegt,
habe ich die mal hier reinkopiert.
gmstuff.quest
levelup.quest
Ribot Bug or My Fault 08/31/2010 - Silkroad Online - 2 Replies Well, i know there is SRO ask the experts, and Private SRo ask the experts, but i didnt find Foreign SRo ask the experts, so i just posted here.
I am getting kinda sick of this, i am botting 4 chars, and sometimes, when bot uses return scroll, a char gets DC, and then another one may get it, or when they go to storage, sometimes it doesnt close the storage NPC, and just stands there (DW).
Any ideas?
hmm whose fault is it 06/25/2006 - Conquer Online 2 - 35 Replies last night i left my CO character comfortably in mz on CO partner while i slept and this morning i wake up and his earings necky armor and boots r gone and CO Partner is nowhere to be seen. now any hack to get my stuff back?
finding the fault, pls help me 04/27/2005 - Lineage 2 - 0 Replies L2walker says:
20:38:53 Link LoginServer Succeed.
20:38:56 Login LoginServer Succeed.
20:39:02 Link GameServer Succeed.
20:49:04 ->Login GameServer Fail.
But I try following:
1.I started the game like usual with l2.exe.