Search found 4 matches

by stevenhoneyman1
Tue 30 Sep 2014, 20:51
Forum: Programming
Topic: How to compile BASH with ASLR?
Replies: 8
Views: 3304

Glad you got it working. That script is pretty much a copy-paste job of the debian wrapper you know. Check the early commits - even the variable names were the same :P

EDIT: link might be useful https://projects.archlinux.org/svntogit ... ng-wrapper
by stevenhoneyman1
Mon 29 Sep 2014, 20:49
Forum: Programming
Topic: How to compile BASH with ASLR?
Replies: 8
Views: 3304

Honestly, I don't know. I knew debian had a hardening wrapper... but not sure on their naming conventions etc. Hopefully this little (silly!) example will explain how it works: #!/bin/bash flag1=0 flag2=0 for flag; do case $flag in -cow|-chicken|-sheep) flag1=1 ;; -blue|-red|-green) flag2=1 ;; esac ...
by stevenhoneyman1
Sun 28 Sep 2014, 20:46
Forum: Programming
Topic: How to compile BASH with ASLR?
Replies: 8
Views: 3304

ASLR is a PITA to apply manually at the moment. Luckily compiler wrappers exist :) You could borrow one from Debian (it's just a perl script) ( https://packages.debian.org/source/sid/hardening-wrapper ) or write your own shell script based on this logic: - loop through the parameters 1 at a time - a...
by stevenhoneyman1
Sun 28 Sep 2014, 11:59
Forum: Programming
Topic: unsorted C snippets for small/fast static apps
Replies: 60
Views: 50895

Its a bit disorganized but I added a ton of stuff to test Edit: ok, really disorganized, I will do a bunch of cleanup and testing before the next version and try to complete the string functions and will be in a new thread. The primary purpose is to allow for smaller overheads in static binaries so...