mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-24 18:43:47 +03:00
Minor update
This commit is contained in:
parent
d6bac363af
commit
3a94435cce
7
thirdparty/pagerank/pagerank.py
vendored
7
thirdparty/pagerank/pagerank.py
vendored
|
@ -12,6 +12,7 @@
|
||||||
#
|
#
|
||||||
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
||||||
|
|
||||||
|
import sys
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
def get_pagerank(url):
|
def get_pagerank(url):
|
||||||
|
@ -77,3 +78,9 @@ def check_hash(hash_int):
|
||||||
check_byte >>= 1
|
check_byte >>= 1
|
||||||
|
|
||||||
return '7' + str(check_byte) + hash_str
|
return '7' + str(check_byte) + hash_str
|
||||||
|
|
||||||
|
def main():
|
||||||
|
print get_pagerank(sys.argv[1]) if len(sys.argv) > 1 else "[x] missing hostname"
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user