Skip to content

Binary Buildable

Latest
Compare
Choose a tag to compare
@spencerdodd spencerdodd released this 11 Apr 06:20
· 5 commits to master since this release

I have made a number of changes in this release. The largest of which is that you can now build binaries of the project! This is hugely useful for dropping on systems that don't have python.

major changes

  • you can build the project into a binary with pyinstaller

  • you can modify the directory location in which the exploit source code will be written to disk, compiled, and executed with the -p flag (i.e. kernelpop -e {exploit} -p /tmp)

  • you can now dump specific exploit source code to a location of your choosing with the -d flag (paired with a selected exploit...i.e. kernelpop -e {exploit} -d

  • more exploits

  • various bugfixes

to build a binary

I made a build script at create_executable.sh. However, if you would like to do it manually, here are the steps:

  1. install pyinstaller
$ pip install pyinstaller`
  1. build the binary
$ cd path/to/kernelpop
$ pyinstaller kernelpop.py --onefile
$ cp dist/kernelpop .

that's it!

UPDATE: the build script that was originally in the release made weird binaries. Use a build script from 42e4936 if you want to use a script. I have added the fixed build script as a separate file to the release.

I will continue to update the project and add more exploits. If you find an issue or have a requested feature, let me know and I will do my best to integrate it!