Who are we? Jos Wetzels Ali Abbasi


QNX Debugging QNX Debugging



Download 10,05 Mb.
bet6/11
Sana27.10.2022
Hajmi10,05 Mb.
#857052
1   2   3   4   5   6   7   8   9   10   11
Bog'liq
wetzels dissecting qnx infiltrate 2018 (1)

QNX Debugging

QNX Debugging

  • QNX Momentics IDE integrates GDB debugger capabilities
  • pdebug
    • Process-level debugging over serial or TCP/IP
  • qconn (remote IDE)
    • Starts pdebug, default port 8000
    • No authentication
    • Upload / download files, run anything as root
    • There’s a metasploit module for this
    • Couldn’t find any quick shodan / censys results

QNX Debugging

QNX Debugging

  • dumper
    • Service that produces post-crash core dump (default in /var/dumps)
    • Directly dump running process with dumper –p
    • Nice for integration into fuzzers
  • KDEBUG (gdb_kdebug)
    • Kernel debugger over serial
    • Needs to be included with IFS (not by default, may need to be built from source)
    • Needs debuggable procnto

QNX Shellcoding: Library Functions

QNX Shellcoding: Library Functions

  • Trivial approach: just re-use library functions, speaks for itself

QNX Shellcoding: Self-Resolving

QNX Shellcoding: Self-Resolving

  • No equivalent to Windows PEB/TEB/SEH approach
  • Could walk stackframe chain up until __init_libc and then fiddle with offsets but requires framepointer compliance for easy unwinding
    • Violated in most binaries already by _start
  • Not worth it

QNX Shellcoding: Syscalls

QNX Shellcoding: Syscalls

  • QNX supports minimal set of ‘native’ syscalls
    • Threads, message passing, signals, clocks, interrupt handlers, etc.
    • QNX < 90 vs Linux > 300 syscalls
    • Prototypes in /usr/include/sys/neutrino.h
  • Other POSIX syscalls implemented in libc as message passing stubs to responsible userspace process

QNX Shellcoding: Syscalls


Download 10,05 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   11




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish