Skip to content

Instantly share code, notes, and snippets.

View fabionoth's full-sized avatar
attention

Fabio Noth fabionoth

attention
View GitHub Profile
@fabionoth
fabionoth / using_db_nmap.sh
Last active May 24, 2024 03:19
Guide to using db_nmap
#Start postgres
root@kali ~# systemctl start postgresql
#Start metasploit database
root@kali ~# msfdb init
#Start metasploit framework
root@kali ~# msfconsole
#Iniciado o Metasploit
@fabionoth
fabionoth / spiral.py
Last active March 31, 2018 19:05
Challenge Spiral Matrix
def challenge(n, counter, x, y, d):
if(DEBUG):
print 'n={}, counter={}, [{},{}], direction={}'.format(n, counter, x, y, d)
print n_array
if n_array[x, y] != 0:
return 1
else :
n_array[x, y] = counter
# Right
if y + 1 < n and n_array[x, y + 1] == 0 and d == 0: