MPGH - MultiPlayer Game Hacking (Hacks, Aimbots, Hackers)


Go Back   MPGH - MultiPlayer Game Hacking (Hacks, Aimbots, Hackers) > Programming > Visual Basics

Reply
 
LinkBack Thread Tools Display Modes
Old 08-11-2008   #1 (permalink)
Member
 
Silk[H4x]'s Avatar
 
Join Date: Jul 2008
Posts: 52
Thanks: 2
Thanked 7 Times in 4 Posts
Silk[H4x] is on a distinguished road
~ DLL Injector Source Code ~

I saw many people asking how to do a DLL Injector, so i diceded to post a source that i made for myself...

NOTE: It is in Visual Basic 6 (VB6) You can't open it with VB.net...

You can start doing your first DLL Injector from that source...
I Hope you understand everything i made, and please don't do sh*t with it!

Have fun (The file is Attached)
Attached Files
File Type: rar Dll Injector Source - By Silk - Fixed.rar (6.3 KB, 148 views)
File Type: zip Dll Injector Source - By Silk - Fixed.zip (6.8 KB, 49 views)
__________________
[Only registered and activated users can see links. ]

- Arunforce fan -


My MPGH goals:


-Post Count-
10 Posts [x]
20 Posts [x]
50 Posts [ ]
70 Posts [ ]
100 Posts [ ]
200 Posts [ ]
500 Posts [ ]
1000 Posts [ ]


-Membership Status-
Become V.I.P. [ ]
Become a Trusted Member [ ]
Become a MPGH Staff Member [ ]


-Programming Status-
Dominate VB.Net 2008 [x]
Dominate C++.net 2008 [ ]
Dominate C++.net 2003 [ ]
Dominate C#.net 2008 [ ]
Dominate D3D Hooks [x]
Dominate Java Scripts [x]
Dominate HTML Scripts [x]

Last edited by Silk[H4x]; 08-12-2008 at 07:29 AM.
Silk[H4x] is offline   Reply With Quote
The Following 4 Users Say Thank You to Silk[H4x] For This Useful Post:
Fizz_X (2 Weeks Ago), MulleDK19 (08-30-2008), olie122333 (09-21-2008), Spadez47 (10-28-2008)
Old 08-11-2008   #2 (permalink)
Bobo's Trainer
 
seemliss's Avatar
 
Join Date: Mar 2008
Posts: 900
Thanks: 6
Thanked 67 Times in 38 Posts
seemliss is on a distinguished road
Doesn't work for me, tried compiling multiple times and using it and it doesn't work.
seemliss is offline   Reply With Quote
Old 08-12-2008   #3 (permalink)
Member
 
Silk[H4x]'s Avatar
 
Join Date: Jul 2008
Posts: 52
Thanks: 2
Thanked 7 Times in 4 Posts
Silk[H4x] is on a distinguished road
Edit: I found an error, i fixed it, it should work now...
__________________
[Only registered and activated users can see links. ]

- Arunforce fan -


My MPGH goals:


-Post Count-
10 Posts [x]
20 Posts [x]
50 Posts [ ]
70 Posts [ ]
100 Posts [ ]
200 Posts [ ]
500 Posts [ ]
1000 Posts [ ]


-Membership Status-
Become V.I.P. [ ]
Become a Trusted Member [ ]
Become a MPGH Staff Member [ ]


-Programming Status-
Dominate VB.Net 2008 [x]
Dominate C++.net 2008 [ ]
Dominate C++.net 2003 [ ]
Dominate C#.net 2008 [ ]
Dominate D3D Hooks [x]
Dominate Java Scripts [x]
Dominate HTML Scripts [x]

Last edited by Silk[H4x]; 08-12-2008 at 07:27 AM.
Silk[H4x] is offline   Reply With Quote
Old 08-27-2008   #4 (permalink)
Advanced Member
 
punkbuster!123's Avatar
 
Join Date: Feb 2008
Posts: 109
Thanks: 20
Thanked 25 Times in 11 Posts
punkbuster!123 is an unknown quantity at this point
thanks for the source
__________________
dont leech plz

[x] 50 posts
[x] 100 posts
[ ] 250 posts
[ ] 500 posts

[ ] other rank
[x] Advanced Member
punkbuster!123 is offline   Reply With Quote
Old 08-30-2008   #5 (permalink)
Choob
 
Join Date: Aug 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
MulleDK19 is on a distinguished road
Thank you very much.

I'm trying to convert this to VB.NET, and works fine except one line.

(ProsH renamed to ProcessHandle)
Code:
CreateThread = CreateRemoteThread(ProcessHandle, vbNull, 0, LibAddress, DLLVirtLoc, 0, ThreadID)

The error:
Code:
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at WindowsApplication1.Form1.CreateRemoteThread(IntPtr ProcessHandle, Int64 lpThreadAttributes, IntPtr dwStackSize, IntPtr lpStartAddress, String lpParameter, Int64 dwCreationFlags, IntPtr lpThreadID)
   at WindowsApplication1.Form1.InjectDll(String DllPath, IntPtr ProcessHandle)
   at WindowsApplication1.Form1.Injection()
   at WindowsApplication1.Form1.cmdInject_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.PerformClick()
   at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
Any help is highly appreciated.
Thanks in advance.
MulleDK19 is offline   Reply With Quote
Old 09-06-2008   #6 (permalink)
Choob
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rotodi1234 is on a distinguished road
what does it do?
rotodi1234 is offline   Reply With Quote
Old 09-13-2008   #7 (permalink)
Member
 
Silk[H4x]'s Avatar
 
Join Date: Jul 2008
Posts: 52
Thanks: 2
Thanked 7 Times in 4 Posts
Silk[H4x] is on a distinguished road
Mulle, i will try to convert it to VB.net if i got any idea how to fix it, i will tell u ..
__________________
[Only registered and activated users can see links. ]

- Arunforce fan -


My MPGH goals:


-Post Count-
10 Posts [x]
20 Posts [x]
50 Posts [ ]
70 Posts [ ]
100 Posts [ ]
200 Posts [ ]
500 Posts [ ]
1000 Posts [ ]


-Membership Status-
Become V.I.P. [ ]
Become a Trusted Member [ ]
Become a MPGH Staff Member [ ]


-Programming Status-
Dominate VB.Net 2008 [x]
Dominate C++.net 2008 [ ]
Dominate C++.net 2003 [ ]
Dominate C#.net 2008 [ ]
Dominate D3D Hooks [x]
Dominate Java Scripts [x]
Dominate HTML Scripts [x]

Last edited by Silk[H4x]; 09-13-2008 at 02:23 PM.
Silk[H4x] is offline   Reply With Quote
Old 09-20-2008   #8 (permalink)
Dual-Keyboard Member
 
Join Date: Aug 2008
Posts: 272
Thanks: 6
Thanked 19 Times in 16 Posts
scapecoolioboy is on a distinguished road
thanks bro help me with trying to make my first hack
__________________
scapecoolioboy is offline   Reply With Quote
Old 10-17-2008   #9 (permalink)
Choob
 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
AltF5 is on a distinguished road
Ah yes, this code I found over at PSCode.com and it is what inspired me to write my own Module(DLL/Exe) injector and ejector (Similar to unlocker)

As for the .Net problem the error appears to be "Attempted to read or write protected memory. " it probably is due to a problem with VirtualAllocEx. Ensure it is succeeded (proper return value according to MSDN) and you could try perhaps using PAGE_READWRITEEXECUTE.

I would check to ensure that all your API calls are succeeding, and if not go from there.

PS -->
Private Const MEM_RELEASE = &H8000 needs to be changed to Private Const MEM_RELEASE = &H8000& (Add "&" at the end) because we need the number to be unsigned. If it is signed it will = -32768 instead of 32768 which is what we want. (If you dont know about signed numbers google it)
Because the declaration of how it is now VirtualFreeEx is failing. (See MSDN documentation to see the proper return value that it should have for success)


Hopefully this helps.
AltF5 is offline   Reply With Quote
Old 10-28-2008   #10 (permalink)
Choob
 
Join Date: Oct 2008
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Spadez47 is on a distinguished road
sweet, thanks. i'll check it out.
Spadez47 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 04:37 AM.