Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/extra/shutils/strip.sh
2992 views
1
#!/bin/bash
2
3
# References: http://www.thegeekstuff.com/2012/09/strip-command-examples/
4
# http://www.muppetlabs.com/~breadbox/software/elfkickers.html
5
# https://ptspts.blogspot.hr/2013/12/how-to-make-smaller-c-and-c-binaries.html
6
7
# https://github.com/BR903/ELFkickers/tree/master/sstrip
8
# https://www.ubuntuupdates.org/package/core/cosmic/universe/updates/postgresql-server-dev-10
9
10
# For example:
11
# python ../../../../../extra/cloak/cloak.py -d -i lib_postgresqludf_sys.so_
12
# ../../../../../extra/shutils/strip.sh lib_postgresqludf_sys.so
13
# python ../../../../../extra/cloak/cloak.py -i lib_postgresqludf_sys.so
14
# rm lib_postgresqludf_sys.so
15
16
strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag $*
17
sstrip $*
18
19
20