|
@@ -1,9 +1,12 @@
|
|
|
#!/usr/bin/python3
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
-# $Id: blogsiread.py,v 1.6 2022/10/10 14:30:28 springm Exp springm $
|
|
|
|
|
-# $Revision: 1.6 $
|
|
|
|
|
-# $Date: 2022/10/10 14:30:28 $
|
|
|
|
|
|
|
+# $Id: blogsiread.py,v 1.7 2022/10/10 15:16:29 springm Exp springm $
|
|
|
|
|
+# $Revision: 1.7 $
|
|
|
|
|
+# $Date: 2022/10/10 15:16:29 $
|
|
|
# $Log: blogsiread.py,v $
|
|
# $Log: blogsiread.py,v $
|
|
|
|
|
+# Revision 1.7 2022/10/10 15:16:29 springm
|
|
|
|
|
+# Summary: added special treatment for picturesfromthezone
|
|
|
|
|
+#
|
|
|
# Revision 1.6 2022/10/10 14:30:28 springm
|
|
# Revision 1.6 2022/10/10 14:30:28 springm
|
|
|
# Summary: lfi repariert
|
|
# Summary: lfi repariert
|
|
|
#
|
|
#
|
|
@@ -185,9 +188,9 @@ def lfionlinede(b, domain, i):
|
|
|
ts = 0 # timestamp
|
|
ts = 0 # timestamp
|
|
|
with urllib.request.urlopen(b[1]) as response:
|
|
with urllib.request.urlopen(b[1]) as response:
|
|
|
html = response.read()
|
|
html = response.read()
|
|
|
|
|
+ string2hash = f"""html"""
|
|
|
p = re.search('titlebox30 cu-pointer[\'"] onclick=[\'"]window.location\s*=\s*[\'"](https://.*?)[\'"][\'"]>\s*<h1.*?>(.*?)</h1', html.decode('utf-8'), re.MULTILINE | re.DOTALL)
|
|
p = re.search('titlebox30 cu-pointer[\'"] onclick=[\'"]window.location\s*=\s*[\'"](https://.*?)[\'"][\'"]>\s*<h1.*?>(.*?)</h1', html.decode('utf-8'), re.MULTILINE | re.DOTALL)
|
|
|
# logger.debug(f"{p[2]}")
|
|
# logger.debug(f"{p[2]}")
|
|
|
- string2hash = f"""p[2]"""
|
|
|
|
|
m.update(string2hash.encode('utf-8'))
|
|
m.update(string2hash.encode('utf-8'))
|
|
|
hash = (m.hexdigest())
|
|
hash = (m.hexdigest())
|
|
|
if not domain in meta_values: # first run
|
|
if not domain in meta_values: # first run
|
|
@@ -195,7 +198,7 @@ def lfionlinede(b, domain, i):
|
|
|
if not meta_values[domain]['hash'] == hash: # Unterschiedliche Hashes
|
|
if not meta_values[domain]['hash'] == hash: # Unterschiedliche Hashes
|
|
|
logger.debug('unterschiedliche hashes')
|
|
logger.debug('unterschiedliche hashes')
|
|
|
logger.debug(f"search result {p[1]} {p[2]}")
|
|
logger.debug(f"search result {p[1]} {p[2]}")
|
|
|
- string2hash = f"""p[2]"""
|
|
|
|
|
|
|
+ # string2hash = f"""p[2]"""
|
|
|
m.update(string2hash.encode('utf-8'))
|
|
m.update(string2hash.encode('utf-8'))
|
|
|
# hash = (m.hexdigest())
|
|
# hash = (m.hexdigest())
|
|
|
meta_values[domain] = { 'hash': hash,
|
|
meta_values[domain] = { 'hash': hash,
|