зеркало из
				https://github.com/iharh/notes.git
				synced 2025-11-04 07:36:08 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			29 строки
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			29 строки
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
2022
 | 
						|
hacker 276
 | 
						|
    https://xakep.ru/2022/03/30/heap-allocation/
 | 
						|
    https://telegra.ph/Haker---Kruche-kuchi-Razbiraem-v-podrobnostyah-problemy-heap-allocation-04-10
 | 
						|
    https://www.youtube.com/c/PathCybersecSlavaMoskvin
 | 
						|
    https://github.com/scwuaptx/Pwngdb
 | 
						|
        sudo apt install gdb build-essential libc6-dbg
 | 
						|
        git clone https://github.com/scwuaptx/Pwngdb.git ~/Pwngdb
 | 
						|
        cp ~/Pwngdb/.gdbinit ~/
 | 
						|
        git clone https://github.com/longld/peda.git ~/peda
 | 
						|
 | 
						|
    r[un] — запустить файл;
 | 
						|
    b[reak] *0x1234 — поставить точку останова на адресе 0x1234;
 | 
						|
    b[reak] 123 — поставить точку останова на строке 123 текущего исходного файла;
 | 
						|
    b[reak] basic.c:123 — поставить точку останова на строке 123 исходного файла basic.c;
 | 
						|
    c[ontinue] — продолжить выполнение;
 | 
						|
    s[tep]  - run single asm instruction
 | 
						|
    n[ext]  - run one source file line
 | 
						|
    x/10xg 0x1234 — распечатать десять 8-байтных слов по адресу 0x1234;
 | 
						|
    p[rint] a — распечатать значение переменной a;
 | 
						|
    p[rint] *((mchunkptr)0x555555756680) — взять содержимое памяти по адресу 0x555555756680 как тип mchunkptr, задереференсить его и распечатать;
 | 
						|
    where — показать, на какой строчке исходного кода находится выполнение программы.
 | 
						|
 | 
						|
    peda and pwngdb commands:
 | 
						|
        vmmap    - out memory map
 | 
						|
        hexdump  - show memory content by address as a hexdump
 | 
						|
        heapinfo - show heap info
 | 
						|
 |