EvilZone

Hacking and Security => Beginner's Corner => : Cylar March 29, 2015, 06:01:11 AM

: Best langauge for coding 0day exploits???
: Cylar March 29, 2015, 06:01:11 AM
Hello i was wondering what programming langauge is best for coding exploits.

I know this is probably asked alot but people say one thing then another all the time

I know that python is great for coding hacking tools but for 0day exploits its all right was just wondering
if there was another thanks and sorry for the short thread.
: Re: Best langauge for coding 0day exploits???
: cyberdrifter March 29, 2015, 06:50:44 AM
Hello i was wondering what programming langauge is best for coding exploits.

I know this is probably asked alot but people say one thing then another all the time

I know that python is great for coding hacking tools but for 0day exploits its all right was just wondering
if there was another thanks and sorry for the short thread.
For general scripting python is awesome, easy to use and expand on. But it's a higher level language.



For writing 0-day exploits I'd say go with C, since memory management is left mostly to the programmer which means it's usually the one most prone to memory exploits (ie: buffer and stack overflows, etc).

: Re: Best langauge for coding 0day exploits???
: KingCasra April 10, 2015, 03:32:16 AM
You don't code 0day's, you find them and code scripts to exploit them. And I would use Python or Asm
: Re: Best langauge for coding 0day exploits???
: Phage April 10, 2015, 01:41:56 PM
Highly depends on the vulnerability. One wouldn't code an exploit for a SQL injection in ASM.
: Re: Best langauge for coding 0day exploits???
: Xires April 10, 2015, 02:14:31 PM
Highly depends on the vulnerability. One wouldn't code an exploit for a SQL injection in ASM.

Some of us might...just to be dicks. ;-P

@OP:
Historically, you use whatever you deem best to make the exploit as useful as possible.  An exploit coded in C may work wonderfully and quickly, but Python might make it easier to use on a target system.  PHP is fine for something that's quick & dirty but Ruby might be used instead to add it to an existing arsenal.  It really just depends on the situation.
: Re: Best langauge for coding 0day exploits???
: M4lwar3 April 11, 2015, 06:54:21 PM
it really depends, but usually python or C++ will be good...
: Re: Best langauge for coding 0day exploits???
: ISLR April 13, 2015, 09:15:09 PM
Python with C_types. Or Pearl.
: Re: Best langauge for coding 0day exploits???
: kenjoe41 April 13, 2015, 10:59:46 PM
Python with C_types. Or Pearl.
*Pearl? (http://en.wikipedia.org/wiki/PEARL_%28programming_language%29)
: Re: Best langauge for coding 0day exploits???
: Spacecow April 17, 2015, 07:11:35 AM
Python with C_types. Or Pearl.

I love me a fresh pearl install on the open-oyster runtime. I'm so sorry, I just had to. I will go now...
: Re: Best langauge for coding 0day exploits???
: Plasma April 18, 2015, 09:25:28 PM
The answer is simple, its either python or C++. These are the best I know for coding exploits but don't quote me on that because I'm not that experienced with writing exploits.
: Re: Best langauge for coding 0day exploits???
: sh4d0w_w4tch April 21, 2015, 09:17:14 PM
You don't "code the exploit" unless you were putting a backdoor into software.  You find a 0 day vuln. and then write a program that can exploit it in an automated way to reduce the amount of work that pen testers would do themselves.

For example, if there's an SQL injection vulnerability in a WordPress plugin, you might write a Python script that would take  the location of the WordPress installation as input from the user and then automatically send the proper query to the vulnerable page.  It could include a series of options for doing things like dumping user info or creating a web shell.