https://alvinsmith.gitbook.io/progressive-oscp/untitled/vulnversity-privilege-escalation
[Unit]
Description=roooooooooot
[Service]
Type=simple
| # Requirements: | |
| # clang - The classes/structs you want to dump must be used in code at least once, not just defined. | |
| # MSVC - The classes/structs you want to dump must have "MEOW" in the name for "reportSingleClass" to work. | |
| # Usage: | |
| # $ make dump_vtables file=test.cpp | |
| dump_vtables: | |
| clang -cc1 -fdump-record-layouts -emit-llvm $(file) > clang-vtable-layout-$(file).txt | |
| clang -cc1 -fdump-vtable-layouts -emit-llvm $(file) > clang-record-layout-$(file).txt | |
| g++ -fdump-lang-class=$(file).txt $(file) | |
| cl.exe $(file) /d1reportSingleClassLayoutMEOW > msvc-single-class-vtable-layout-$(file).txt |
https://alvinsmith.gitbook.io/progressive-oscp/untitled/vulnversity-privilege-escalation
[Unit]
Description=roooooooooot
[Service]
Type=simple
| @echo on | |
| REM checked for Windows 10 | |
| REM fork from https://gist.github.com/theultramage/cbdfdbb733d4a5b7d2669a6255b4b94b | |
| REM you may want full list https://gist.github.com/raspi/203aef3694e34fefebf772c78c37ec2c | |
| REM SET attrib=+ATTRIB_HIDE | |
| SET attrib=-ATTRIB_HIDE | |
| REM Hard disk burst ignore time | |
| powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 %attrib% |
| diff --git a/Makefile b/Makefile | |
| index ee02e0f..25a4aa5 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -373,19 +373,19 @@ maketest: | |
| stage1: force | |
| -mkdir stage1 | |
| mv $(STAGESTUFF) $(STAGE_GCC) stage1 | |
| - -rm stage1/gnulib | |
| + -rm -f stage1/gnulib |
This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.
ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Other options for PDFSETTINGS: