[OpenSource] Packet Editor coded in C

04/17/2011 19:25 xsh#1
Content

1. What is this?
2. How to use it?
3. Whuut?
4. Credits
5. End notes


What is this?

This is the source code for a proxy, designed for flyff.


How to use it?

This is the source, and NO TOOL YOU CAN USE STRAIGHT AWAY. It is meant to be used by programmers, who know what they do.
The whole source code is commented, and should be self-explanatory. I will only answer questions from smart guys, who know how to code in C/C++.
Since it was coded with Visual Studio 2010, I recommend you using it also.

The source contains a class for the flyff packet-structure and a detour lib, hooking the send/recv/WSASend/WSARecv and GetQueuedCompletionStatus API's.
Flyff only uses WSASend and WSARecv, but because of overlapped I/O being used, I had to hook GetQueuedCompletionStatus to check the arrival of the incoming packets.


Whuut?

I've released this to the public to move people to learn coding, and start doing their own hacks. This is a base project for everyone willing to learn how coding hacks works.

I'd still suggest you reading about C/C++ programming, hooking and networking to fully understand what this tools does.


Credits

- Cypher from GameDeception (for his Injector)
- Wei Dai (for his CRC source)
- DeeplBlueSea (overlapped I/O crap :D)
- Microsoft (detour lib)
(lol I never thought I'd credit M$ xD)


End notes

I will give no support for this. I will not answer stupid questions. I might update the source or not.
By the way: everyone is welcome to help the community out, and post your findings about packets and/or exploits.




Archive password: epvp
04/17/2011 19:28 xsh#2
Changelog

Code:
[u]0x0B0410[/u]
  - First public release

Snippets

Send chat message

(Sidenote: you could find out the SHOUT message, and spam the server to death)

Code:
FP Packet;
char szMessage[] = "Hello World(server)!";
char packet_str[MAX_PACKET_SIZE];
int packet_size = 0;

Packet.Append((DWORD)0xFFFFFFFF); // Needed
Packet.Append(PACKETTYPE_CHAT); // We wanna chat
Packet.Append((DWORD)strlen(szMessage)); // Append text size
Packet.AppendArray(szMessage, strlen(szMessage)); // Append the actual text
Packet.WriteHeader(dwSessionID); // Make CRC for the packet header

Packet.GetStr(packet_str); // Put the whole packet into a send-able string
packet_size = Packet.GetSize(); // Get the lenght of the packet

send(s, (const char *)packet_str, packet_size, 0); // Tell stories to the server ;D
04/17/2011 19:34 Furko#3
passwort?
04/17/2011 19:36 xsh#4
Sry, forgot that ^^
First post updated with password
04/17/2011 19:37 Furko#5
thx
04/18/2011 01:06 Kaelyb#6
Where is the hook.dll? It's asking for it.
04/18/2011 03:10 xsh#7
You have to compile it -.-
The title say source code, not Packet Editor Binary.
04/18/2011 13:22 Daniiii#8
nette methode gegen leecher, allerdings musst du die changelogs als extra post machen? du könntest sie auch einfach in deinen 1. post immer editieren
04/18/2011 14:08 bowhunt#9
was bringt das ?
was muss ich da tuhn ?
04/18/2011 15:40 Leichtgewicht#10
Can u add a VT?
04/18/2011 16:30 xsh#11
VT? Whats that?
04/18/2011 16:53 Tom94#12
Great tool, finally someone with knowledge...
AND someone who uses comments + reasonable variable names in his SRC, yayz!
:D

I'm amazed someone actually created something decent and released it in epvp. :)


Quote:
Originally Posted by Daniiii View Post
nette methode gegen leecher, allerdings musst du die changelogs als extra post machen? du könntest sie auch einfach in deinen 1. post immer editieren
Aber Dani, er ist englisch! xD

@xsh:
He asked if you could put the changelog into the first post.


Quote:
Originally Posted by xsh View Post
VT? Whats that?
Virustest.


Quote:
Originally Posted by GorkilSaysSorry View Post
Can u add a VT?
Why should he, he released the SRC code.
You can't implement malware into text files. /facepalm
04/18/2011 17:11 V17Files#13
joa sieht gut aus :D
kann mir ma erklären was das jetz bringt ..
is das jetz eig nur nen addy fürnen anderen pe oder wie oder was
sorry bin noob in dem bereich <'3

I´m Noob.
Can sb explain me how it works ... ;p
04/18/2011 17:45 xsh#14
Quote:
Originally Posted by Tom94 View Post
Great tool, finally someone with knowledge...
AND someone who uses comments + reasonable variable names in his SRC, yayz!
:D

I'm amazed someone actually created something decent and released it in epvp. :)
Thx for comment. Freut mich wenn meine Arbeit respektiert wird ;-)

@Daniiii: Für die Übersicht zu behalten ^^ Post ist nur Temporär, hatte keine Zeit/Lust da großartig den text zu formatieren :P
04/18/2011 19:26 Kaelyb#15
Well, the injector is completely useless, and for whatever reason you decided to just smack a bunch of files into a folder, without any proper instructions, completely refusing to give any idea on how to use anything you've given. I know it's the source, and what you do with it, but with what program? How do you even know it would work on all private servers? I don't feel like wasting my time building something, that won't even break through itak.