Browse Source

more patch

master
myitinos 5 years ago
parent
commit
565c7455f7
4 changed files with 17 additions and 10 deletions
  1. +0
    -1
      lib/Character.cpp
  2. +2
    -2
      lib/UserInterface.cpp
  3. +15
    -7
      poc.py
  4. BIN
      spell-warz-again-final

+ 0
- 1
lib/Character.cpp View File

@ -92,7 +92,6 @@ void Character::levelUp()
{
if ((level <= MAX_LVL) && readytoLevelUp())
{
experience -= toNextLevel();
level++;
maxHP += 100;
maxMP += 50;

+ 2
- 2
lib/UserInterface.cpp View File

@ -1,7 +1,7 @@
#include "UserInterface.hpp"
const int UserInterface::INTERVAL = 0;
const int UserInterface::MINI_INTERVAL = 0;
const int UserInterface::INTERVAL = 100;
const int UserInterface::MINI_INTERVAL = 50;
const int UserInterface::MAX_DAY = 28;
const int UserInterface::MAX_MONTH = 12;
const int UserInterface::MAX_YEAR = 100;

+ 15
- 7
poc.py View File

@ -1,6 +1,7 @@
from pwn import process
FILENAME = "./spell-warz-again-patched"
FILENAME = "./spell-warz-again-final"
def poc0():
p = process(FILENAME)
@ -26,14 +27,22 @@ def poc1():
p.sendline("Leo")
print p.recvuntil(">")
p.sendline("y")
print p.recvuntil(">")
p.sendline("2")
for _ in range(100):
print p.recvuntil(">")
p.sendline("3")
print p.recvuntil(">")
p.sendline("0")
print p.recvuntil(">")
p.sendline("y")
print p.recvuntil(">")
p.sendline("1")
print p.recvuntil(">")
p.sendline("4")
print p.recvuntil(">")
p.sendline("y")
print p.recvuntil(">")
p.sendline("0")
for _ in range(10):
print p.recvuntil(">")
p.sendline("99")
p.interactive()
@ -45,7 +54,6 @@ def poc2():
p.sendline("y")
print p.recvuntil(">")
p.sendline("2")
p.interactive()
print p.recvuntil(">")
p.sendline("4")
print p.recvuntil(">")
@ -57,4 +65,4 @@ def poc2():
if __name__ == "__main__":
poc2()
poc1()

BIN
spell-warz-again → spell-warz-again-final View File


Loading…
Cancel
Save