{"id":15989307,"url":"https://github.com/peter279k/iii_tmp_passwd_tool","last_synced_at":"2026-03-19T05:35:51.112Z","repository":{"id":79147031,"uuid":"402283539","full_name":"peter279k/iii_tmp_passwd_tool","owner":"peter279k","description":"Get III portal site temporary password quickly.","archived":false,"fork":false,"pushed_at":"2022-05-10T03:00:44.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T12:44:55.600Z","etag":null,"topics":["python36"],"latest_commit_sha":null,"homepage":"https://github.com/peter279k/iii_tmp_passwd_tool","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peter279k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-02T04:00:16.000Z","updated_at":"2021-10-19T01:53:23.000Z","dependencies_parsed_at":"2023-05-23T19:30:39.699Z","dependency_job_id":null,"html_url":"https://github.com/peter279k/iii_tmp_passwd_tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter279k%2Fiii_tmp_passwd_tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter279k%2Fiii_tmp_passwd_tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter279k%2Fiii_tmp_passwd_tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter279k%2Fiii_tmp_passwd_tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter279k","download_url":"https://codeload.github.com/peter279k/iii_tmp_passwd_tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239456694,"owners_count":19641902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python36"],"created_at":"2024-10-08T04:41:37.072Z","updated_at":"2026-03-19T05:35:46.056Z","avatar_url":"https://github.com/peter279k.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nThis is a III portal website for III employees to get temp password happily.\n\n# Prerequisites\n\n- It should establish III VPN connection firstly.\n- Using the `Ubuntu 18.04+` for the current running environment.\n- Using the following commands to install required packages for `pdftotext` dependency:\n\n```Bash\nsudo apt-get update\nsudo apt-get install build-essential libpoppler-cpp-dev pkg-config python3-dev\n```\n\n- Python3 and pip3 commands are available.\n    - Using `pip3 install pipenv --user` to install `pipenv` if the `pipenv` command is not installed.\n    - If using the `Ubuntu 18.04+`, the `pipenv` command will be located on `/home/user/.local/bin` folder.\n    - Using the `PATH=$PATH:/home/user-name/.local/bin` command to be available for using `pipenv` command.\n    - Using the `pipenv install` command to create Python virtual environment and install required Python dependencies.\n\n# Usage\n\n- Using `git clone https://github.com/peter279k/iii_tmp_password_tool` to clone this repository.\n- Creating the `iii_settings.txt` file and it contents are as follows:\n\n```\nyour employee number\nlast 4 lengths of your id number(e.g. 3456)\nyour birthday year(e.g. 1993)\nyour birthday month(including zero, e.g. 01)\nyour birthday day(including zero, e.g. 01)\n```\n\n- Creating the `pop3_setting.txt` file and its contents are as follows:\n\n```\nyour outlook mail account\nyour outlook mail password\n```\n\n- Using the `pipenv shell` to enter into current Python virtual environment shell.\n- Using `./run.sh last-6-lengths-of-your-id-number` command to run `./run.sh` shell script and start getting temp password on III portal!\n- After running above `./run.sh` script is successful, using the `exit` command exit this virtual environment shell.\n\n- The output message is as follows:\n\n```Bash\npeter@lee:~/iii_tmp_passwd_tool$ ./run.sh last-4-lengths-of-your-id-number\nPlease ensure III VPN connection has been established!\nGet III tmp password is started...\n\nLoading iii_settings.txt file...\nSending getting tmp password request is successful.\nSleeping 60 seconds to wait for the tmp password e-mail is received...\nTotal no. of Email :  1\n\n\nStart Reading Messages\n\n\nAttached file: pwd90486.pdf has been saved!\nInitializing pdf_auth.txt file...\nAppending PDF password to pdf_auth.txt file...\nDelete pwd90486.pdf PDF file...\nFetching tmp password from specific pwd90486.pdf has been done!\nNow you're getting the III portal tmp password on ./iii_tmp_password.txt file!!\nDon't forget to run the get_otp_password.py program!\n```\n\n- As above sample messages, the temporary password is stored in `./iii_tmp_password.txt` file.\n- Congrats! Now it can use this temporary password to login III portal happily :)!\n- After using the temporary password to login account, it needs to get the OTP to login III account.\n- Running the `pipenv run python3 get_otp_password.py` to get the OTP.\n- The `get_otp_password.py` is useful and it can be used in normal login progress with Vakten in III login portal system.\n\n# References\n\n- https://shallowsky.com/blog/programming/deleting-pop-email.html\n- https://www.dev2qa.com/python-parse-emails-and-attachments-from-pop3-server-example/\n- https://pipenv-fork.readthedocs.io/en/latest/basics.html\n- https://pipenv.pypa.io/en/latest/install/\n- https://www.codingforentrepreneurs.com/comments/16093\n- https://github.com/pypa/pipenv/issues/84\n- https://stackoverflow.com/questions/49944871/deactivate-a-pipenv-environment\n- https://docs.python-requests.org/en/master\n- https://www.crummy.com/software/BeautifulSoup/bs4/doc/#\n- https://gist.github.com/strayge/f619cacb972d956ddbe1472d882821fe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter279k%2Fiii_tmp_passwd_tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter279k%2Fiii_tmp_passwd_tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter279k%2Fiii_tmp_passwd_tool/lists"}