hacktricks/binary-exploitation/common-binary-protections-and-bypasses
2024-04-23 19:38:23 +00:00
..
aslr Translated ['binary-exploitation/basic-binary-exploitation-methodology/t 2024-04-17 05:40:20 +00:00
pie Translated ['README.md', 'binary-exploitation/arbitrary-write-2-exec/aw2 2024-04-07 03:54:31 +00:00
stack-canaries Translated ['README.md', 'binary-exploitation/arbitrary-write-2-exec/aw2 2024-04-07 22:24:15 +00:00
cet-and-shadow-stack.md Translated ['README.md', 'binary-exploitation/arbitrary-write-2-exec/aw2 2024-04-07 03:54:31 +00:00
libc-protections.md Translated ['binary-exploitation/common-binary-protections-and-bypasses/ 2024-04-23 19:38:23 +00:00
memory-tagging-extension-mte.md Translated ['README.md', 'binary-exploitation/arbitrary-write-2-exec/aw2 2024-04-07 03:54:31 +00:00
no-exec-nx.md Translated ['binary-exploitation/basic-binary-exploitation-methodology/R 2024-04-12 01:35:24 +00:00
README.md Translated ['README.md', 'binary-exploitation/arbitrary-write-2-exec/aw2 2024-04-07 03:54:31 +00:00
relro.md Translated ['README.md', 'binary-exploitation/arbitrary-write-2-exec/aw2 2024-04-07 03:54:31 +00:00

Kinga na Kupita Kizuizi cha Kufyonza Binary Kwa Kawaida

Jifunze AWS hacking kutoka sifuri hadi shujaa na htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)!

Njia nyingine za kusaidia HackTricks:

Wezesha Faili za Msingi

Faili za msingi ni aina ya faili inayozalishwa na mfumo wa uendeshaji wakati mchakato unapopata ajali. Faili hizi hukamata picha ya kumbukumbu ya mchakato uliopata ajali wakati wa kufungwa kwake, ikiwa ni pamoja na kumbukumbu ya mchakato, rejista, na hali ya kikokotoo cha programu, miongoni mwa maelezo mengine. Picha hii inaweza kuwa na thamani kubwa kwa ajili ya kutatua hitilafu na kuelewa kwa nini ajali ilitokea.

Kuwezesha Uzalishaji wa Dump ya Msingi

Kwa chaguo-msingi, mifumo mingi hupunguza ukubwa wa faili za msingi kuwa 0 (yaani, hazizalishi faili za msingi) ili kuokoa nafasi ya diski. Ili kuwezesha uzalishaji wa faili za msingi, unaweza kutumia amri ya ulimit (katika bash au mifumo ya aina hiyo) au kusanidi mipangilio ya mfumo kwa ujumla.

  • Kutumia ulimit: Amri ulimit -c unlimited inaruhusu kikao cha kabati cha sasa kuunda faili za msingi zenye ukubwa usio na kikomo. Hii ni muhimu kwa vikao vya kutatua matatizo lakini si endelevu kupitia kuanzishwa upya au vikao vipya.
ulimit -c unlimited
  • Mipangilio Thabiti: Kwa suluhisho la kudumu zaidi, unaweza kuhariri faili ya /etc/security/limits.conf ili ujumuishe mstari kama * soft core unlimited, ambao unaruhusu watumiaji wote kuzalisha faili za msingi zenye ukubwa usio na kikomo bila kulazimika kuweka ulimit kwa mikono katika vikao vyao.
* soft core unlimited

Kuchambua Faili za Msingi na GDB

Ili kuchambua faili ya msingi, unaweza kutumia zana za kudebugi kama GDB (GNU Debugger). Ukidhani una kutekelezeka ambayo ilizalisha dump ya msingi na faili ya msingi inaitwa core_file, unaweza kuanza uchambuzi na:

gdb /path/to/executable /path/to/core_file

Hii amri inapakia faili ya kutekelezeka na faili ya msingi ndani ya GDB, ikiruhusu uchunguze hali ya programu wakati wa kushindwa. Unaweza kutumia amri za GDB kuchunguza steki, kuchunguza viwakilishi, na kuelewa sababu ya kushindwa.

Jifunze AWS hacking kutoka sifuri hadi shujaa na htARTE (HackTricks AWS Red Team Expert)!

Njia nyingine za kusaidia HackTricks: