diff --git a/.gitignore b/.gitignore index f717486..e043e0b 100644 --- a/.gitignore +++ b/.gitignore @@ -123,3 +123,4 @@ dmypy.json # Pyre type checker .pyre/ +idpass.txt diff --git a/FirstTime.exe b/FirstTime.exe new file mode 100644 index 0000000..25dd1da Binary files /dev/null and b/FirstTime.exe differ diff --git a/FirstTime.py b/FirstTime.py new file mode 100644 index 0000000..3345551 --- /dev/null +++ b/FirstTime.py @@ -0,0 +1,14 @@ +import os +from win32com.client import Dispatch +import getpass + +USER_NAME = getpass.getuser() +wd = os.getcwd() +sd = '\"C:/Users/' + USER_NAME + '/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/\"' +shell = Dispatch('WScript.Shell') +shortcut = shell.CreateShortCut('IUSERSCHEK.lnk') +shortcut.Targetpath = wd + '/tool.vbs' +shortcut.WorkingDirectory = wd +shortcut.save() + +os.system('move IUSERSCHEK.lnk '+ sd) \ No newline at end of file diff --git a/README.md b/README.md index cc62d89..7cebca3 100644 --- a/README.md +++ b/README.md @@ -16,27 +16,18 @@ This is what I made for you guys. This python script will do this task for you. ## Usage -Just open the "idpass.txt" file & enter your four or more(:v) roommates userid & password & save it -Add "tool.vbs" to startup & restart your computer, That's all. Checking the log will give you more info -about your usage. - You have to do only 3 tasks & Forget about everything else. 1. Download the zip file from releases & unzip it & store in a permanent folder 2. Open the "idpass.txt", in this file store your userid & password in the format shown (At first delete the line give as an example) & close it after save -3. Press "Windows+R" type `shell:startup` Create a "New Shortcut", give the path of `tool.vbs` from your folder, -Click next next When all is ok, Then restart your PC, & forget about to check your usage. - -Attention: When your usage will cross the limit 5800 minutes then your IUSERS password will be automatically changed to `1234` so that your router can't connect to internet -by your password. So when you see that your router can't connect to internet then you are assuered that you pass the limit of 5800 minutes & also your -password is now `1234` +3. Just click on the FirstTime.exe and boom -NB: Unfortunately the "lib" folder can't be uploaded in git, so you find it in https://drive.google.com/drive/folders/1zFVP5WjEq9ixa9xNZkKyFcQHM9pxywh6?usp=sharing +Attention: When your usage will cross the limit 5800 minutes then the next userid will be connected on the router automatically. Also, as of right now, this script is still a WIP (and therefore very unpolished, so expect many changes to the script in the near future. (GUI coming soon xD) **Disclaimer: The Code has still now few of bugs, so this isn't working properly right now. Use at your own risk.** M. K. Bashar -180041238 +180041238