• Welcome to Valhalla Legends Archive.
 

[c++]quick and simple packet question

Started by mentalCo., June 09, 2004, 04:16 PM

Previous topic - Next topic

mentalCo.

ok what would a packet look like that sent the text "hello" into a channel.  like the actual data sent.

hismajesty

#1
FF 0E 0A 00 48 65 6C 6F 00     ....Hello.

Edit: Forgot an 'L' when posting, fixed down below.

mentalCo.

EXACTLY what i was looking for.  thanks mate.

UserLoser.


iago

#4
Quote from: UserLoser. on June 09, 2004, 06:30 PM
Quote from: hismajesty[yL] on June 09, 2004, 04:27 PM
FF 0E 0A 00 48 65 6C 6F 00     ....Hello.

Try again

Looks like a counting mistake :)

Correct would be:
FF 0E 09 00 48 65 6C 6F 00     ....Hello.

<edit> actually, the size isn't wrong, you missed an L in the hex :P
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


hismajesty

FF 0E 0A 00 48 65 6C 6C 6F 00    ....Hello.

mentalCo.

is there an easy way to convert text to hex.  also to convert the size of the text into a hex value?  i just put together some sloppy ass code that just does text.  using c++ of course.

R.a.B.B.i.T

Just convert the strlen of the string (or character array) into hex, not too hard.

I forget the conversion call though.. -.-

mentalCo.

nvm i got it.  thanks people.  cool forums.  ill let everyone have my source to my bot when im done with it to learn.

BaDDBLooD

Quote from: mentalCo. on June 09, 2004, 09:36 PM
nvm i got it.  thanks people.  cool forums.  ill let everyone have my source to my bot when im done with it to learn.

that'd be nice.. maybe you could put some Comments?
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

iago

Quote from: BaDDBLooD on June 09, 2004, 09:52 PM
Quote from: mentalCo. on June 09, 2004, 09:36 PM
nvm i got it.  thanks people.  cool forums.  ill let everyone have my source to my bot when im done with it to learn.

that'd be nice.. maybe you could put some Comments?

Commenting code? Unheard of!
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*