Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Vb injection... (help)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Fri Jan 25, 2008 12:21 pm    Post subject: Vb injection... (help) Reply with quote

Hey guys, been away for awile...
... I have a question... Is there a way to inject a code into vb...
Example:
If Text1.text = "Inject me" Then
Inject code here
End sub

_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Fri Jan 25, 2008 12:33 pm    Post subject: Reply with quote

What "code" ?
Back to top
View user's profile Send private message
FerrisBuellerYourMyHero
Master Cheater
Reputation: 0

Joined: 14 Feb 2007
Posts: 401
Location: Inside your <kernel>

PostPosted: Fri Jan 25, 2008 3:29 pm    Post subject: Reply with quote

LOSE THE VB!!!!

BASIC is in the name! why do you think a BASIC language can do any kind of injection?

VB is nothing but

Code:

this = that

text1 = this

vb = gay


you can't inject anything! dont waiste your time with that awful crap

_________________
You know, life moves pretty fast. If you don't stop and look around once in a while, You could miss it!

Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Fri Jan 25, 2008 3:49 pm    Post subject: Reply with quote

vb can use the win32 api meaning it can inject into others.

Wiccan is gonna write about a half page flame at you now...

_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Jan 25, 2008 3:56 pm    Post subject: Reply with quote

You mean DLL Injection?
My CE has one and there is an example on planet
Back to top
View user's profile Send private message
wouthr
Cheater
Reputation: 0

Joined: 11 Jan 2008
Posts: 30

PostPosted: Fri Jan 25, 2008 4:12 pm    Post subject: youcan Reply with quote

you can inject a code into into like MSN Messenger
dont listen to FerrisBuellerYourMyHero he dosnt know a shit

This shuld do just fine http://fileforums.com/showthread.php?t=56003

_________________
Whee, this is my sig Wink
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Jan 25, 2008 5:11 pm    Post subject: Reply with quote

dnsi0 wrote:
You mean DLL Injection?
My CE has one and there is an example on planet


I am curious, how much of it did you actually write? Neutral
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Jan 25, 2008 6:06 pm    Post subject: Reply with quote

I wrote alot of it. I just looked over the code and did something with it. Yes the injection part I did not write.
Back to top
View user's profile Send private message
Hack-Addict
Master Cheater
Reputation: 0

Joined: 20 Nov 2007
Posts: 287

PostPosted: Fri Jan 25, 2008 10:02 pm    Post subject: Reply with quote

rEakW0n wrote:
What "code" ?

Like, if i had my own language that i wrote, and it had a injection process, it would look kinda like this, but in visual basic form...
Code:
If Text1.text = "inject" then
Inject code to check1.check: ect ect

Is there a way?

Quote:
LOSE THE VB!!!!

BASIC is in the name! why do you think a BASIC language can do any kind of injection?

VB is nothing but

Code:

this = that

text1 = this

vb = gay



you can't inject anything! dont waiste your time with that awful crap
no one gives a crap about your opinion serlock, we all knw visual basic is the worst type of programming, but uhh, dude, it can still be fun to use... get a life... besides, im learning C++ right now...
_________________

Sciextron made the userbar up here, Rep him =D

[img]http://i145.photobucket.com/albums/r225/Michaell61/header.gif[/img] <---Visit theprocoders today!
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Fri Jan 25, 2008 11:11 pm    Post subject: Reply with quote

I had this code from long time, but i never seen to use it Confused

Anyhow, this code is NOT mine for 1st. And i will just translate it in some stuffs.

Quote:
Private Const PAGE_READWRITE As Long = &H4
Private Const MEM_RELEASE As Long = &H8000
Private Const MEM_COMMIT As Long = &H1000
Private Const STANDARD_RIGHTS_REQUIRED As Long = &HF0000
Private Const SYNCHRONIZE As Long = &H100000
Private Const PROCESS_ALL_ACCESS As Long = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &HFFF)
Private Const INFINITE As Long = &HFFFFFF

Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
Private Declare Function VirtualAllocEx Lib "kernel32" (ByVal hProcess As Long, ByVal lpAddress As Long, ByVal dwSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As Long
Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function CreateRemoteThread Lib "kernel32" (ByVal hProcess As Long, lpThreadAttributes As Long, ByVal dwStackSize As Long, lpStartAddress As Long, lpParameter As Any, ByVal dwCreationFlags As Long, lpThreadId As Long) As Long
Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long


Public Function Inyecta(RutaDll As String, Pid As Long) As Integer
Dim proc As Long
Dim nload As Long
Dim rems As Long
Dim longi As Long
Dim RemThread As Long
Dim Tid As Long

On Error GoTo Error
proc = OpenProcess(PROCESS_ALL_ACCESS, False, Pid)
nload = GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA")
rems = VirtualAllocEx(proc, 0, Len(RutaDll), MEM_COMMIT, PAGE_READWRITE)
WriteProcessMemory proc, ByVal rems, ByVal RutaDll, Len(RutaDll), longi
CreateRemoteThread proc, ByVal 0, 0, ByVal nload, ByVal rems, 0, Tid
WaitForSingleObject rems, INFINITE
CloseHandle proc
CloseHandle rems
Inyecta = 0
Exit Function
Error:
Inyecta = 1
End Function


Form:

Code:


Code:
Private Sub Form_Load()
Dim ruta As Long
Dim resultado As Integer

ruta = Shell("notepad.exe")
resultado = Inyecta("C:\ladll.dll", ruta)

If resultado = 0 Then
MsgBox "Dll Inyected succeful!!!", , "Información"
Else
MsgBox "Error Iyectiong Dll", vbCritical, "Información"
End If
End
End Sub


It's pretty understanble that inyecta = inject, and ruta = path, but in this case was use notepad directly.

resultado = result.

Anyhow, have'nt test, but supposly have to work. Wish this code could help you in anything, but learn from it Smile

_________________

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Jan 27, 2008 9:25 am    Post subject: Reply with quote

blankrider wrote:
vb can use the win32 api meaning it can inject into others.

Wiccan is gonna write about a half page flame at you now...


Nah, no reason. Warns work just as well. (I made an updated post to the rules saying that rule #4 is going to be enforced more the other day. And this will falls under that rule.)

@Hack-Addict: What exactly is it you are trying to do? I don't really understand what you mean by inject then saying stuff like:

Code:
If Text1.text = "inject" then
Inject code to check1.check: ect ect


Check1 is an object, it doesn't take code, and .Check is a property of the object. Do you mean you are trying to make it check the check mark if the text equals a certain value? And if so, is this all in the same project? IF so on that too, why bother using injection? Just set the property yourself.

A little more info please Smile

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites