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 82 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Programmingarrow AV bypass
EH-Net
May 22, 2013, 09:07:00 AM *
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: AV bypass  (Read 5795 times)
0 Members and 2 Guests are viewing this topic.
Ignatius
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« on: October 02, 2011, 12:25:13 PM »

We had quite a lively discussion a while ago about methods of making meterpreter payloads capable of bypassing AV.  I've been researching further and saw a nice write up of a technique that uses a DLL to write shellcode directly into an executable in memory.  When the executable's shellcode has been updated, it runs the shellcode.  This is the link to the article and accompanying code.  Has anyone else seen this?

I've managed to compile dummyApp.exe file and it's payloadLib.dll but the DLL fails miserably when trying to execute VirtualProtectEx.  The line of code that throws up an error is:

Code:
VirtualProtectEx(GetCurrentProcess() ,
                  (LPVOID)offset,
                   SIZE_PAYLOAD,
                   PTR_PROTECT_NEW,
                   &PTR_PROTECT_OLD);

The error code is 487 - "ERROR_INVALID_ADDRESS"

I've seen that some of the code in the package needs some slight tweaks.  My system is Windows XP SP3 and DEP is enabled only for essential Windows programs and services.

Thank you in anticipation for any insight into how to get this fascinating technique to work.

EDIT: after a bit more reserarch
« Last Edit: October 02, 2011, 01:46:09 PM by Ignatius » Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


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


View Profile WWW
« Reply #1 on: October 02, 2011, 01:44:56 PM »

Here you go:
http://www.abysssec.com/blog/2011/09/25/bypassing-all-anti-virus-in-the-world-good-bye-detection-hello-infection/
Logged

I'm an InterN0T'er
Ignatius
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #2 on: October 03, 2011, 01:19:27 PM »

Thank you MaXe.

I see that they provide the software but I would like to know how things work and be able to compile then run the software myself!
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


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


View Profile WWW
« Reply #3 on: October 04, 2011, 04:58:52 PM »

They described their bypass pretty well, except their "custom subroutine" or whatever they called it. But I understand you want a more technical explanation, but I don't have that on this blog.

What I'd do if I were you, would be to research how their tool works and build your own copy of it, or for that sake your own version.

If you do a bit of research, you'll see that there are numerous ways to trick Anti-Virus scanners, and blackhats for example, discover new techniques all the times.

That's pretty much all I can help with in this case, and I would spoil all the fun if I researched it for you too  Smiley
Logged

I'm an InterN0T'er
Ignatius
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #4 on: October 05, 2011, 09:56:22 AM »

Sure thing MaXe.  I think that everyone here likes the challenge of finding a problem and solving it ... or at least giving it a good thrashing before realising that it can't be solved!

I have made some progress with the code that I uncovered on packetstorm.
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.083 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.