MPGH - MultiPlayer Game Hacking


Go Back   MPGH - MultiPlayer Game Hacking > Programming > Visual Basics

Closed Thread
 
Thread Tools Display Modes
Old 08-11-2008   #1
Newb
 
Silk[H4x]'s Avatar
 
Join Date: Jul 2008
Posts: 46
Thanks: 2
Thanked 21 Times in 6 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)
Downloadable Files
File Type: rar Dll Injector Source - By Silk - Fixed.rar (6.3 KB, 1292 views)
File Type: zip Dll Injector Source - By Silk - Fixed.zip (6.8 KB, 553 views)
__________________

- 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 06:29 AM..
Silk[H4x] is offline  
The Following 11 Users Say Thank You to Silk[H4x] For This Useful Post:
88power88 (08-22-2009), AndMore (07-18-2009), Chaser343 (03-03-2009), conndrst (05-09-2010), Fizz_X (12-23-2008), MrJohnson90 (01-16-2010), MulleDK19 (08-30-2008), olie122333 (09-21-2008), shotimoti (1 Day Ago), Spadez47 (10-28-2008), Tierrize (09-01-2009)
Sponsored Links
Old 08-11-2008   #2
Attention Whore
 
Seemliss's Avatar
 
Join Date: Mar 2008
Location: Here. FUUUUUUUUUUUUUUUUUU- The Game
Gender: male
Posts: 2,533
Thanks: 9
Thanked 110 Times in 68 Posts
Seemliss will become famous soon enough
Credits: 12,778, Level: 23
Credits: 12,778, Level: 23 Credits: 12,778, Level: 23 Credits: 12,778, Level: 23
Activity: 1%
Activity: 1% Activity: 1% Activity: 1%
Send a message via AIM to Seemliss Send a message via MSN to Seemliss Send a message via Skype™ to Seemliss
Doesn't work for me, tried compiling multiple times and using it and it doesn't work.
Seemliss is offline  
Old 08-12-2008   #3
Newb
Threadstarter
 
Silk[H4x]'s Avatar
 
Join Date: Jul 2008
Posts: 46
Thanks: 2
Thanked 21 Times in 6 Posts
Silk[H4x] is on a distinguished road
Edit: I found an error, i fixed it, it should work now...
__________________

- 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 06:27 AM..
Silk[H4x] is offline  
Old 08-27-2008   #4
Advanced Member
 
punkbuster!123's Avatar
 
Join Date: Feb 2008
Gender: male
Posts: 104
Thanks: 20
Thanked 31 Times in 15 Posts
My Mood: Busy
punkbuster!123 is on a distinguished road
Credits: 2,222, Level: 28
Credits: 2,222, Level: 28 Credits: 2,222, Level: 28 Credits: 2,222, Level: 28
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Send a message via Skype™ to punkbuster!123
thanks for the source
__________________
dont leech plz

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

[ ] other rank
[x] Advanced Member
[x] Gail Medic Box
punkbuster!123 is offline  
Old 08-30-2008   #5
Choob
 
MulleDK19's Avatar
 
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  
Old 09-06-2008   #6
Choob
 
rotodi1234's Avatar
 
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  
Old 09-13-2008   #7
Newb
Threadstarter
 
Silk[H4x]'s Avatar
 
Join Date: Jul 2008
Posts: 46
Thanks: 2
Thanked 21 Times in 6 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 ..
__________________

- 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 01:23 PM..
Silk[H4x] is offline  
Old 09-20-2008   #8
Dual-Keyboard Member
 
scapecoolioboy's Avatar
 
Join Date: Aug 2008
Gender: male
Posts: 272
Thanks: 6
Thanked 25 Times in 21 Posts
scapecoolioboy is on a distinguished road
thanks bro help me with trying to make my first hack
__________________
scapecoolioboy is offline  
Old 10-17-2008   #9
Choob
 
AltF5's Avatar
 
Join Date: May 2008
Location: USA
Gender: male
Posts: 19
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  
Old 10-28-2008   #10
Choob
 
Spadez47's Avatar
 
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  
Closed Thread
  

Bookmarks

Tags
code, dll, injector, source

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 Off
Pingbacks are Off
Refbacks are Off

Forum Jump


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

no new posts