Skip to content

Instantly share code, notes, and snippets.

View daariecc's full-sized avatar
🏠
Working from home

scbdq daariecc

🏠
Working from home
View GitHub Profile
@Enigmatrix
Enigmatrix / GDB Cheatsheet.md
Last active April 2, 2025 21:52
GDB Cheatsheet using pwndbg

GDB Cheatsheet

Setup

First of all, we need to install GDB: sudo apt install gdb

Next we will be installing an extension to GDB called pwndbg that will make our life easier. Instructions for installation are here.

You can verify that your installation works by running gdb /bin/true in your command line, then running start when the prompt shows.

#Для какого наименьшего целого числа А выражение (x ∙ y > A) /\ (x > y) /\ (x < 8) тождественно ложно, т.е. принимает значение 0
#при любых целых положительных x и y?
for a in range(1,100):
t=0
for x in range(1,100):
for y in range(1,100):
if ((x*y>a) and (x>y) and(x<8))==True:
t+=1
break
if t==1: