Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 73 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Otherarrow What the next step for I to break my code.
EH-Net
May 18, 2013, 12:29:16 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: What the next step for I to break my code.  (Read 6398 times)
0 Members and 1 Guest are viewing this topic.
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« on: February 11, 2012, 05:03:25 PM »

Hello all.
I build a soft in vb.net. I use xenocode for protect. My soft conecte the server in my server for login.

Now, I  try to pentest my program.

The xenocode was easy to breack. I dump with PETools.
But the .exe created, no function, show an error 0xc000007b.

But in IDA my code is very clean to read, that is a first problem.

I can to continue to investigate my code. Do I need dump dlls? This error can to refer my dlls?

I dont know what my step.  In ollydbg my dumpedfile not open.

In IDA, when dumped file open, debugging option not appear, not enable.

Thanks for your attentin.
Logged
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #1 on: February 12, 2012, 01:49:41 PM »

I founded that I need open my dumped.exe in ILDASM.exe and fix de PE Headrs. How Can I to make This?

In ILDASM not have editor...
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #2 on: February 12, 2012, 02:33:39 PM »

You can change the PE headers with LordPE. (Or OllyDbg ver. 2.X)
Logged

I'm an InterN0T'er
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #3 on: February 12, 2012, 02:40:23 PM »

Opa, thanks.
My program have 20mb size and my dump.exe have only 37kb...
Is it normal?
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #4 on: February 12, 2012, 02:58:15 PM »

No idea, depends on what your program is and what dump.exe contains. It sounds quite extreme it's as large as 20mb, did you write it all in Visual Basic .Net?  Grin

Anyway, I can't tell if it's normal or not, as dump.exe could contain only a part of the entire program. The PE header if I'm not mistaken, is only 1KB. So I wonder what dump.exe contains. But you should investigate that yourself on your own  Smiley
Logged

I'm an InterN0T'er
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #5 on: February 15, 2012, 06:39:31 PM »

Good night all.
I did not get to break this code.
My dumped file is clean to read in IDA but the debbuging not function.

I thing that I need found the entreypoint, but I not found.

In attachement, fallow my original exe save in IDA, and my dumped exe.

I dont want this files breaks, unpack...I to learn how I can to do.
If anybody to obtain this code correct, please, tell me the steps How Can I do too.

Sorry my english...

Logged
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #6 on: February 22, 2012, 11:16:10 AM »

Tests:
-Ildasm, not possible because error CLR.
-Reflector give error "is not a .NET module"
-Xenocode Solution function only postbuild 2006, and my .exe use postbuild 2009.
-I dump with the LordPE, any error, but the dumped.exe not run.
When I open the Dumped.exe I can see that the code is C#.net.

Sugestions?
Logged
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #7 on: February 22, 2012, 05:43:50 PM »

I found in dumped.exe the exact code where I can hack.
 if ((CSServer.LogonState == CSServer.ServerStatus.ok) | (CSServer.LogonState == CSServer.ServerStatus.OKed))
start program
else
close
I need only to make run my dumped.exe...

Logged
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #8 on: February 23, 2012, 05:57:53 AM »

I didn't manage to create an runnig .exe. The error 0x00007b always happens. But in other foruns I see that other people have the same problem. Exctly problem.
-I dont see any dll in folders, but qhen I use petools I can see many dlls that my exe is using in this time. I try dump this dlls. In Reflector I can Reader this dll, but when I try to import in Visual Studio, I receive an error that say not valid assembly or com...

My doubt is:
In this time, I can to read the code, undertanding all steps, I can to read the dll...so I can undertanding how my program function. Only I cant generate an exe correct, functioning...

But I need? If I can debug the original exe and change directly in assembly...
Is possible? In olly no...When debbugging, read many dlls, and terminate the debug, so run the exe...This happens because the xenocode run my exe in Virtual Mode...

Any sugestion?
Logged
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #9 on: February 23, 2012, 10:33:57 AM »

Wy I seach in my pc for dlls showed in petools and not found but I can dump this dlls for any folder?
How this dlls can to  hide?  Xenocode make this?

I need dump more 3 dlls, that not showed in petools. I think this only appear if the program load this. As my program first need to login, so any dlls only loaded if my login is correct , so my exe can go on for the next steps loading the other dlls.

Is this correct?
Where is this dlls?
Logged
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #10 on: February 24, 2012, 04:51:40 AM »

I instal my program in VM. Use InstallWatch for look all files installed in my pc. In Added Files, I can see that the specific folder was instaled many files, but in explorer this same folder is empty.

I configure my explore to show all hided files and system hided files, but continue empty...

How I can access this hided files?
Logged
bisewski
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #11 on: February 24, 2012, 06:04:20 AM »

assim fica foda, não tem uma alma disposta....
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.