This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Start postgres | |
root@kali ~# systemctl start postgresql | |
#Start metasploit database | |
root@kali ~# msfdb init | |
#Start metasploit framework | |
root@kali ~# msfconsole | |
#Iniciado o Metasploit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |