mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Minor update
This commit is contained in:
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user