Skip to content

A collection of useful functions to write an exploit in OCaml

License

Notifications You must be signed in to change notification settings

computereasy/ocaml-exploit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCaml-Exploit

This is a collection of functions that is useful for crafting an exploit in OCaml. Build your type-safe exploitations for fun and profit.

Usage

Simply write your own exploit in a payload/ directory, and simply type make exploit_name.native to build your exploit. For example, if your exploit is written in payload/test.ml, then you type the following command to make it.

make test.native

Example

payload/test.ml contains a simple example. OCaml-Exploit provides several convenient functions such as string repetition operator (*). You can see that crafting an exploit in OCaml is now as easy as in Python.

  let sock = connect_tcp "localhost" 31337 in
  recv_msg sock 2048 |> print; (* receive a message and print it *)
  send_msg sock ("A" * 100);   (* repeat "A" 100 times *)
  wait ();                     (* wait for return key press *)
  disconnect sock

About

A collection of useful functions to write an exploit in OCaml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 70.0%
  • Shell 22.3%
  • Makefile 7.7%