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 41 guests online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Meterpreter payloads and antivirus
EH-Net
May 19, 2013, 10:20:31 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 [2]   Go Down
  Print  
Author Topic: Meterpreter payloads and antivirus  (Read 23741 times)
0 Members and 1 Guest are viewing this topic.
cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #15 on: July 10, 2011, 09:17:00 PM »

A very good article on this topic: http://schierlm.users.sourceforge.net/avevasion.html
Logged

Ignatius
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #16 on: July 11, 2011, 04:04:03 AM »

A very good article on this topic: http://schierlm.users.sourceforge.net/avevasion.html
Thank you for the link.  I'll have to set some time aside to read it, digest it then test it out.  My initial skim read of the article suggests that it is written in some obscure African tribal language.  However, I'll put google to good use and see if I can make sense of it!
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1630



View Profile
« Reply #17 on: July 11, 2011, 11:19:39 AM »

Interesting read, thanks.  Once I have time this afternoon, to digest it, I'll have to compare it to some other stuff I've got.  I've done a lot of runtime encryption / decryption to bypass AV's and the like (using xor's and some other methods,) and I've been playing with R3l1k's method, from the SET stuff, on the secmaniac link, and have been having some fun, too.

Again, as I said in another thread, this morning, it's ncie to see different methods for accomplishing a task.  You can never be too reliant on any one, as each has both their own advantages and drawbacks.
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
Ignatius
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #18 on: July 11, 2011, 11:31:09 AM »

I've done a lot of runtime encryption / decryption to bypass AV's and the like (using xor's and some other methods,) and I've been playing with R3l1k's method, from the SET stuff, on the secmaniac link ....

I'm interested in the other techniques to which you alluded.  We mentioned using xor, as demonstrated by muts a couple of years ago, earlier in this thread.  Do you have any links to easily followed techniques for runtime encryption/decryption, other than using xor?  If I can get my head around the basics, possibly using C or C++ with inline assembly (?), maybe I can use my google skills to raise the bar and develop this further.
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1630



View Profile
« Reply #19 on: July 11, 2011, 12:07:54 PM »

As I'm not a heavy-duty programmer (I tend to analyze and fix code, more often than I have opportunity to write my own,) I play with encryption and such, when I have time.  Lately, the only stuff I've done was with R3l1k's stuff, as I mentioned, so I could compare it to what I've done, in the past...

Some places with info on encryption methods:

ELF
http://www.phrack.org/issues.html?issue=58&id=5#article

Polymorphic Encryption (xor again)
http://web17.webbpro.de/index.php?page=polymorphic-encryption-methods

I've done some things like putting the decryption key into dll's, and calling them from within the encrypted exe.  Another trick I've used, a little bit, is to combine methods / concepts (like xor and ELF) and use a decryption key, which I provide as a command-line variable at runtime, when, which combined with other key info within the code, allows for decryption.  I don't have a sample of any of my code handy (I'd have to dig through my VM's and toolboxes to find them, as lately, my focus was shifted onto some other things, outside of security, and I had to backburner a lot of my research and tool building / gathering,) but the concept really isn't that difficult, if you want to work on similar ideas, yourself.

If I can make some time to dig out my code snippets I've done, etc, I will.  In the meantime, perhaps sil or another has something handy?
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
Ignatius
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #20 on: July 12, 2011, 01:49:22 PM »

As I'm not a heavy-duty programmer ....

I'm grateful for the links.  This is turning into an interesting journey for me.  I did a little asm programming AGES ago (in the late 80's!) as an academic exercise but then I moved towards other things.  I'll look into brushing up my coding skills.  I'm sure I'll find some code snippets (C, C++ and asm) with which I can play.  In the meantime, if anyone does have anything that might be of use or interest, that would be great.  If you do get chance to dig out anything from your research, that would be perfect too.

Finally, I realise that most folks don't talk explicitly about their coding so I realise that any examples that I see are likely to be relatively old and have undergone upgrade themselves.
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


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


View Profile WWW
« Reply #21 on: July 14, 2011, 04:56:30 PM »

You can also use the techniques used in this paper to encode your Metasploit payloads, if they're executables. (It is possible to encode them on the fly in a debugger as well, but that may require a bit more experience in case there is none.)

Link: Bypassing Anti-Virus Scanners
Logged

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

Posts: 91


View Profile
« Reply #22 on: July 15, 2011, 12:37:58 PM »

Thank you for the link.  I've seen that paper and have been collecting links to relevant papers, blogs etc.  It was when I saw the paper before, I was spurred into joining your forum as there's a lot of interesting information there!
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


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


View Profile WWW
« Reply #23 on: July 19, 2011, 04:05:49 PM »

Thank you for the link.  I've seen that paper and have been collecting links to relevant papers, blogs etc.  It was when I saw the paper before, I was spurred into joining your forum as there's a lot of interesting information there!


No problem, and thanks!  Grin There isn't much going on at those forums currently, but there is a lot of nice content, which is why they're up (and may be forever), plus there is also a lot of visitors daily  Smiley
Logged

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

Posts: 1


View Profile
« Reply #24 on: February 18, 2012, 03:35:42 PM »

This is a different type of method used to bypass AV when creating metasploit payloads.  It has helped my bypass alot of different AV products when msfpayload | msfencode (msfvenom) has failed. I like this method because it allows the tester alot of flexibility in obfuscating the ASM instructions.

http://www.pentestgeek.com/2012/01/25/using-metasm-to-avoid-antivirus-detection-ghost-writing-asm/

Hope this helps!
Logged
Pages: 1 [2]   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.091 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
 
         
Free Business and Tech Magazines and eBooks

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