Compare commits

...

2 Commits

4 changed files with 16 additions and 3 deletions

View File

@ -6,3 +6,5 @@ TOTP_SEED=
#Cookie
QL_0=
IBSID=
APP_DEBUG=true

5
api.py
View File

@ -2,6 +2,8 @@ from flask import Flask, request, jsonify
import subprocess
import json
from datetime import datetime, timedelta
import os
from dotenv import load_dotenv
app = Flask(__name__)
@ -70,4 +72,5 @@ def verify_payment():
return jsonify({"success": False, "message": "Transaction not found, contact support"})
if __name__ == '__main__':
app.run(debug=True)
debug_mode = os.getenv('APP_DEBUG', 'False').lower() in ('true', '1', 't')
app.run(debug=debug_mode)

View File

@ -1,8 +1,12 @@
#!/bin/bash
if [ -f .env ]; then
source .env
else
echo .env file not found, using env
fi
while true; do
source .env
curl 'https://faisanet.mib.com.mv/aProfile/keepAlive' \
-X 'POST' \

6
tx.sh
View File

@ -1,6 +1,10 @@
#!/bin/bash
source .env
if [ -f .env ]; then
source .env
else
echo .env file not found, using env
fi
curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \
-H "cookie: prefTheme=1; ql_0=${QL_0}; IBSID=${IBSID}; dashboardStatsMode=1; _zwaf_ua=Brave" \