Turecko-americká vycházející matematická hvězda Levent Alpöge ze společnosti Anthropic vyvolal pozdvižení oznámením (PDF), že s pomocí superinteligence Claude od Antropicu dokázal vyřešit jeden ze sedmi největších matematických problémů tisíciletí, slavnou Riemannovu hypotézu (prvočísla se mezi čísly objevují zdánlivě nepravidelně, hypotéza tvrdí, že za jejich rozmístěním je určitý řád). Svůj důkaz uvolnil jako open-source
… více »
#!/bin/bash
python -c "import crypt, getpass, pwd;clear=getpass.getpass(); print crypt.crypt(clear, '\$6\$SALTsalt\$');"
Spravne vytvori sha-512 hash hesla.
#!/usr/bin/python
import crypt, getpass, pwd;
print "Zadejte heslo administratora:"
clear = getpass.getpass()
print crypt.crypt(clear, '\$6\$saltSLAT\$')
print clear
Sice vytvori hash ale jiny, pravdepodobne des.
Napada vas co musim nastavit aby se kod choval stejne?
Dekuji za kazdy napad
Řešení dotazu:
#!/usr/bin/python import crypt, getpass, pwd print "Zadejte heslo administratora:" clear = getpass.getpass() print crypt.crypt(clear, '$6$SALTsalt$') print clear
echo:
$ echo "import crypt, getpass, pwd;clear=getpass.getpass(); print crypt.crypt(clear, '\$6\$SALTsalt\$');" import crypt, getpass, pwd;clear=getpass.getpass(); print crypt.crypt(clear, '$6$SALTsalt$');
Unlike Standard C, all unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the string. (This behavior is useful when debugging: if an escape sequence is mistyped, the resulting output is more easily recognized as broken.)
Tiskni
Sdílej: