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 


Isolated Space

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

Joined: 09 Feb 2009
Posts: 289

PostPosted: Wed Jul 11, 2012 1:42 pm    Post subject: Isolated Space Reply with quote

Hello,

I would like to code something as Sandboxie, but a little bit different. The intrestest part is that it CANNOT connect to the internet, if it does it should pop up something witt: from where to where etc.

How should I start with this? I've actually no clue how this is be done, loading all windows .dll which ahs to do with internet connection and hook the Major functions? I know that the code I'm checking has no drivers or something Smile so I don't need to dive into the kernel right?

Grz
Back to top
View user's profile Send private message
n0 m3rcY
Cheater
Reputation: 0

Joined: 18 Jun 2012
Posts: 42

PostPosted: Mon Jul 16, 2012 6:48 pm    Post subject: Reply with quote

Basically you will need to research a lot into windows hooks, then an easy way is just to hook a bunch of common malware / other calls whatever you deem to be noteworthy, then you can log/block any of them if you want. I'm assuming you want something a la anubis that shows you what is happening to the system.

Your specific situation would be hooking things like OpenInternetFileURL or whatever it is, and other calls such as WinSock commands.

Here's one alternative to making a system-wide hook (which would be a pain in the ass), a trainerspy-style dll that you can just use a loader for and hook a bunch of calls, log to a file, then close the app? skilinium. com/blog/?p=75 If it's malware you're talking about, just use sandbox or an alternative (which a lot of malware detect and can get around anyways), an up-to-date proffessional app is better than what you will be making / have time to make.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25832
Location: The netherlands

PostPosted: Mon Jul 16, 2012 6:56 pm    Post subject: Reply with quote

Also, keep in mind that an application can execute an external program like telnet and send data with that. No need to use the winsock api or any api at all
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
n0 m3rcY
Cheater
Reputation: 0

Joined: 18 Jun 2012
Posts: 42

PostPosted: Mon Jul 16, 2012 7:07 pm    Post subject: Reply with quote

Dark Byte wrote:
Also, keep in mind that an application can execute an external program like telnet and send data with that. No need to use the winsock api or any api at all

Luckily by default telnet is disabled in Win7/Vista, you should also be hooking calls like RtlAdjustPrivilige so it can't enable things on your system anyways. Can't think of any other shell network calls, so I guess you could also check for system calls to telnet.
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Tue Jul 17, 2012 2:47 am    Post subject: Reply with quote

Thanks all, but what can I do if the program is an .exe, I just place IAT hooks everywhere and check if it's from that current process?

I don't understand the startup method yet, if someone injects a .dll, how can I be sure that I check it well enough?

Also if I hook the Winsock and the Internet stuff, there are no other API that can be used or any little tricks like telnet?
Back to top
View user's profile Send private message
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