Jump to content

stringsplit for C++


mmavipc
 Share

Recommended Posts

$hplugin = PluginOpen("dll.dll")
ConsoleWrite("lolz" & @lf)
ConsoleWrite(enc(0x00,0x00,0x00,0x00,"lolz",4) & @lf)
PluginClose($hplugin)

How would I run the plugin in it's own program?

You are passing all NULLs to the function. Then you dereference that array of NULLs and pass it to the mc_encrypt function as a string (which would only get the first character anyways). Either that is the problem now, or that is going to be a problem later.

But now, I have to agree with Valik. You need to get a foundation in C or C++, or even just low-level programming concepts in general.

edit:

Actually, I guess AutoIt would convert 0x00 to "0".

Edited by cppman
Link to comment
Share on other sites

  • Replies 45
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Ah, yes. Wait, for the OP: why not accept a number instead of a string?

That would make a lot more sense.

char IV[5];
memset(IV, 0, sizeof(char) * 5);
for (int i = 0; i < 4; i++) IV[i] = (char)AU3_GetInt32(&blah[i]);

Then there is his string. muttley

Edited by cppman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...