Skip to content

Commit 7f17f5d

Browse files
committed
new file: files/updateControl.py
1 parent 8cc5836 commit 7f17f5d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

files/updateControl.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/python3
2+
from requests import get
3+
4+
def update(ver:str=None):
5+
6+
ver: str = open('.version', 'r').read()
7+
8+
githubVerionController: str = get('https://raw.githubusercontent.com/C4ssif3r/WebExploit/main/files/.version').text
9+
10+
if ver != githubVerionController:
11+
upsateQuestion = input (f'update available !\n web explloit new verion: {githubVerionController}\nare you want to update ? [y/n] ')
12+
if updateQuestion == 'y':

0 commit comments

Comments
 (0)