commit 3ba94a17171004316d4a89c6f1dd4a0bbe8f1684
parent 113914981abead040e84cc64f5d23e830980094b
Author: rbckman <rob@tarina.org>
Date: Tue, 18 Aug 2026 20:05:16 +0300
no
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/apache2install.sh b/apache2install.sh
@@ -30,7 +30,7 @@ EOF
echo "Installing all dependencies..."
apt-get update
-sudo apt install apache2 python3-pip python3-pil python3-markdown
+sudo apt install apache2 zip python3-pip python3-pil python3-markdown
sudo pip3 install webpy-v.0.76.zip --break-system-packages
sudo apt install libapache2-mod-wsgi-py3
diff --git a/server.py b/server.py
@@ -339,8 +339,8 @@ class trust():
stopflood(ip, referer)
loginform = self.form()
i = web.input()
- password_hashed=hash_password(i.password).hex()
- thedict={'servername':i.servername, 'port':i.port, 'user':i.user, 'password':password_hashed}
+ #password_hashed=hash_password(i.password).hex()
+ thedict={'servername':i.servername, 'port':i.port, 'user':i.user, 'password':i.password}
savejson('r/trusted/'+session.user+'/'+i.servername,thedict)
return web.seeother('/trust')
@@ -1512,7 +1512,6 @@ def zippitandshippit(postid):
for a in allowedchar:
if '.'+a in t['servername']: #is webaddress use https
url='https://'+t['servername']+':'+t['port']
- passcode=bytes.fromhex(t['password'])
trustedlogin = ['curl','-X','POST', url+'/login', '-i', '-b', basedir+'/sessions/sessions-'+session.user, '-c',basedir+'/sessions/sessions-'+session.user, '-d', 'user='+t['user'], '-d', 'password='+passcode]
subprocess.check_output(trustedlogin)
#OK GOT EM COOKIES LES DO IT DO IT DO IT SHIPPIT!