mirror of https://github.com/dirtbags/moth.git
Fix exception in flagd.py:FlagServer.handle_close
This commit is contained in:
parent
dd281b5706
commit
1ba4f341f6
|
@ -142,6 +142,8 @@ class FlagServer(asynchat.async_chat):
|
|||
self.inbuf.append(data)
|
||||
|
||||
def set_flag(self, team):
|
||||
if not self.cat:
|
||||
return
|
||||
self.flag = team
|
||||
self.submitter.set_flag(self.cat, team)
|
||||
f = open(os.path.join(flags_dir, self.cat), 'w')
|
||||
|
|
|
@ -18,4 +18,4 @@ target:
|
|||
$(MAKE) -C daemons TARGET=$(TARGET) install
|
||||
|
||||
clean:
|
||||
rm -rf target
|
||||
rm -rf target pwnables.tce
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/var/lib/cat/flag
|
Loading…
Reference in New Issue