From f83b053fcbf4a5ba924e64482f059f6cb25c41d0 Mon Sep 17 00:00:00 2001 From: gbrochar Date: Tue, 9 Apr 2024 10:28:35 +0200 Subject: [PATCH] fix: check payload fd --- srcs/.woody.c.swp | Bin 0 -> 20480 bytes srcs/woody.c | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 srcs/.woody.c.swp diff --git a/srcs/.woody.c.swp b/srcs/.woody.c.swp new file mode 100644 index 0000000000000000000000000000000000000000..db761445917e7d3d3908cbc30fa2258f01e8c8b4 GIT binary patch literal 20480 zcmeHOZHygN86Ks4Tm&JdjS7LBUD9&z_TK$&yQSSF%XSOJ?Y8N5q1ZOl**jl!VhU6>MtWwq_8n}bcTmIUT1~t0pR261U%l^|p80FF`8nUK z)(oGDmijb|rc<$oZ}&%nq28*~3_|V)y~BeI!?%N8D{g;()M4N7V4v-VzENp5ZL=~o zuyM%bgGOaw!$^N+c)hWyGGcBtDyF${g!2Kjf1@!}SwFmKWMhASr7`EZw&NImfnN>! zj(VQC&|6(fy1XoBAZI{phE`?dYHet6pr6>dxx0&9w{kWoCTAdLAZH+FAZH+FAZH+F zAZH+F;3LF9*tkUdJm&jxHRprs`(rKNE7bM%>ia-T`6cSwP~S&d%GG85l{1htkTZ}o zkTZ}okTZ}okTZ}okTZ}okTZ}o@IPR{Fg5K7B=1`;#o&1Ue^ANr?lqeB4saIu8E^*p z2JjH@bzmBp0#*X&KZ!cP_kbsXCx8XO0=j?|!1=2+?O(v}fTw^5fiD1ufEq9lFyJQO zPgiN$AAlEt=Ygkzr+||{9jE~Zf!)9~@LAwCU=-K_y!#2r4g3Ij7I+ZY3(Nv*fNtP} zD>dy^;1|Fvz{|j4zy`X3Hw&8fWndSu3b+LL+ZCGjBJeP<8u;_&n)Ykphrm~W8-VX$ zrfH7?j{x5SjswSlJAe_O1gr+mf$y`x8Q>Y<3E;ax6Chpu1qUuq0^bH60XT3qa20R{ z`tkr5xDj{_hc{mX?gS=*USJ)t8n_Nv37k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izeof(char) * payload->len); ft_memcpy(payload->payload, buffer, payload->len); @@ -211,4 +216,4 @@ int prepare_injection(t_efl_content *woody) save_elf("woody", woody_file, woody->file_size); free(woody_file); return EXIT_SUCCESS; -} \ No newline at end of file +}