It is currently Fri Nov 15, 2019 2:56 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject:
PostPosted: Mon Sep 05, 2005 6:23 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Apr 27, 2005 9:41 pm
Posts: 150
Location: Finland
which method were you using? i havent gotten that kind of error message at never...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 05, 2005 6:26 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 2092
Location: Germany
:-S is your debugger disabled?

_________________
bye,
Daniel


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 05, 2005 6:45 pm 
Offline
666
666

Joined: Mon Sep 01, 2003 2:33 pm
Posts: 1033
Using dark dragons code I think? second example in the first post.

and yes, I think the debugger was disabled EDIT: I lied Debugger was enabled (I find it so difficult to tell from the IDE gadgets these days if the debbuger is on or off!) Injects successfully if debugger disabled. My apologies for being a dumb ass lol


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 05, 2005 10:00 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3113
Location: United Kingdom
Looks like microsoft aren't that clever after all... ;)

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 05, 2005 10:20 pm 
Offline
666
666

Joined: Mon Sep 01, 2003 2:33 pm
Posts: 1033
DoubleDutch wrote:
Looks like microsoft aren't that clever after all... ;)


yes, seems odd that with the debugger on that M$ successfully interupts it. my faith in M$ was almost converted lol. At least somebody (other than me) thought to check if the debugger was enabled LMAO


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 12:19 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Apr 27, 2005 9:41 pm
Posts: 150
Location: Finland
ricardo wrote:
Can anybody show something that the injected code can do without crashing?

I was only able to use delays and msgboxes, but not anymore. Any API call (per example) crashes for me.


here is one apicall used...

Code:
Procedure RemoteThread()
   MessageRequester("Success","Injection worked.")
   CreateProcess_(0, "calc.exe", 0, 0, 0, #CREATE_SUSPENDED, 0, 0, @sinfo.STARTUPINFO, @pinfo.PROCESS_INFORMATION)
EndProcedure


after injecting that check your taskmanager(ctrl+alt+delete) and there should be calc.exe running ;)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 6:08 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 2092
Location: Germany
LuCiFeR[SD] wrote:
EDIT: I lied Debugger was enabled (I find it so difficult to tell from the IDE gadgets these days if the debbuger is on or off!) Injects successfully if debugger disabled. My apologies for being a dumb ass lol


Ok so now is all right again ;) . Debugger already had to be disabled with the code before.

_________________
bye,
Daniel


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 10:36 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 13, 2005 6:03 pm
Posts: 128
Happened to me the same as LuCiFeR[SD].
Debugger disabled runs perdectly, when debugger is on it crashes.

xgp


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 2:41 pm 
Offline
Always Here
Always Here
User avatar

Joined: Sat Aug 30, 2003 5:58 pm
Posts: 5883
Location: Denmark
If debugger is on it attemps to inject a part of the debugging code too!

Okvasi:
Code:
DisableDebugger ;DISABLES DEBUGGER! This is needed.


add that on top of the sources so no one mistakes this. Then the source will work!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 2:42 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 2092
Location: Germany
thefool wrote:
If debugger is on it attemps to inject a part of the debugging code too!

Okvasi:
Code:
DisableDebugger ;DISABLES DEBUGGER! This is needed.


add that on top of the sources so no one mistakes this. Then the source will work!


Yes, or we use some Critical Sections, that should also work.

_________________
bye,
Daniel


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 2:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Apr 27, 2005 9:41 pm
Posts: 150
Location: Finland
Critical sections? sounds interesting, tell me more... :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 4:25 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 2092
Location: Germany
okasvi wrote:
Critical sections? sounds interesting, tell me more... :)


Critical Sections are for using strings in Threads. Maybe you should use them then.

In this Topic are a few Methods:

http://forums.purebasic.com/german/viewtopic.php?t=3061&highlight=critical+sections

_________________
bye,
Daniel


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 5:01 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Apr 27, 2005 9:41 pm
Posts: 150
Location: Finland
found this and looked easy enought to implement http://forums.purebasic.com/english/vie ... l+sections


but do i really need that if i inject only one thread to same process?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 5:42 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 2092
Location: Germany
okasvi wrote:
found this and looked easy enought to implement http://forums.purebasic.com/english/vie ... l+sections


but do i really need that if i inject only one thread to same process?


Yes, threads are not secure, so it could crash.

_________________
bye,
Daniel


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 06, 2005 6:40 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 13, 2005 6:03 pm
Posts: 128
I've tried other operations(Files) than Messagerequester and it crashes on that line.(I've made a messagerequester to every operation in the thread).

xgp


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye