seeedfarming: process the input as a 1 line string - brcon2025-hackathons - Bitreichcon 2025 Hackathons
(HTM) git clone git://bitreich.org/brcon2025-hackathons git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/brcon2025-hackathons
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
(DIR) commit 3bd98e91f1d752ae93f0af24083a7a016d1fcd57
(DIR) parent 644c58d480adfced1f4d60c64b133816d60d6a42
(HTM) Author: Josuah Demangeon <me@josuah.net>
Date: Fri, 1 Aug 2025 19:36:45 +0200
seeedfarming: process the input as a 1 line string
Diffstat:
M seeedfarming/windowshell.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/seeedfarming/windowshell.py b/seeedfarming/windowshell.py
@@ -21,6 +21,7 @@ myip = wlan.ipconfig('addr4')[0]
print(myip)
myport = 70
+myserver = 'bitreich.org'
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((myip, myport))
@@ -45,7 +46,7 @@ endserial="66666666666666666"
while True:
conn, addr = s.accept()
print('Connected with %s:%s' % (addr[0], addr[1]))
- selector = conn.read().decode()
+ selector = conn.readline().decode()
print('read %s from client\n' % selector)
selectorpath = selector.split("/")
serialnumber = "".join(selectorpath)
@@ -55,4 +56,4 @@ while True:
else:
gopher_print(conn, "Welcome to Windows Hell!\nTry to find the Serial Number to exit one by one!\n Har Har Har Har ....\n")
for number in range(0, 9):
- gopher_link(conn, selector, number)
+ gopher_link(conn, selector, str(number))