Skip to content

Commit

Permalink
add tool.vbs to startup automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
iambashar committed Mar 12, 2022
1 parent e96c301 commit fede8ba
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ dmypy.json

# Pyre type checker
.pyre/
idpass.txt
Binary file added FirstTime.exe
Binary file not shown.
14 changes: 14 additions & 0 deletions FirstTime.py
Original file line number Diff line number Diff line change
@@ -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)
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fede8ba

Please sign in to comment.