500106002 Cyber Security Lab 5
500106002 Cyber Security Lab 5
1. Install Dependencies
!pip install google search-python
try:
results = search(dork_query, num_results=num_results)
for idx, url in enumerate(results):
print(f"[{idx+1}] {url}")
except Exception as e:
print(f"⚠ Error: {e}")
inurl:admin login
```
🔹 Steps:
1. Open **Google Search**.
🔹 Security Fix:
✔ Restrict admin panels using IP whitelisting and multi-factor authentication
(MFA).
-------------------------------------------------
--------------------------------------------------
🔹 Steps:
1. Open **Google Search**.
🔹 Security Fix:
✔ Encrypt sensitive databases and restrict public access.
-------------------------------------------------
inurl:/view/view.shtml
```
🔹 Steps:
1. Open **Google Search**.
2. Enter the query.
🔹 Security Fix:
✔ Set a strong password and disable default admin credentials.
-------------------------------------------------
🔍 Searching: inurl:/view/view.shtml
[1] https://webcam1.lpl.org/view/view.shtml?id=768337&imagepath=%2Fmjpg%2
[2] https://ipcam-1.byrd.osu.edu/view/view.shtml?id=1113&imagepath=%2Fmjpg%
[3] https://www.streetdirectory.com/etoday/view-view-shtml-axis-ecpjcw.html
[4] http://299jkb1.257.cz/view/view.shtml
[5] https://www.scribd.com/document/731832375/view-view-shtml-axis-live
--------------------------------------------------
```
🔹 Steps:
1. Open **Google Search**.
🔹 Security Fix:
✔ Disable anonymous FTP access and use SFTP instead.
-------------------------------------------------
--------------------------------------------------
```
🔹 Steps:
1. Open **Google Search**.
🔹 Security Fix:
✔ Never store credentials in plaintext files. Use password managers.
-------------------------------------------------
--------------------------------------------------
--------------------------------------------------
🔹 Steps:
1. Open **Google Search**.
🔹 Steps:
1. Open **Google Search**.
--------------------------------------------------
```
🔹 Steps:
1. Open **Google Search**.
🔍 Searching: inurl:index.php?id=
[1] http://www.avrdc.org/index.php?id=1
[2] https://stackoverflow.com/questions/53474045/difference-between-index-ph
[3] https://e-sga.org/index.php?id=5
[4] https://community.modx.com/t/homepage-is-not-loading-without-index-php-
[5] https://urfu.ru/index.php?id=9677
--------------------------------------------------
🔹 Steps:
1. Open **Google Search**.
--------------------------------------------------
Practice Exercises:
Retrieve all archived URLs for a given website between 2018 and 2020.
Find pages on upes.ac.in that were once available but later removed (i.e.,
returned 404 errors).
try:
response = requests.get(url)
data = response.json()
except Exception as e:
print(f"⚠ Error: {e}")
# Example Usage
find_deleted_pages("upes.ac.in")
import requests
try:
response = requests.get(url)
data = response.json()
except Exception as e:
print(f"⚠ Error: {e}")
# Example Usage
track_website_changes("nasa.gov", [2010, 2013, 2016, 2019, 2022])
Search for pages related to admin panels or login pages archived from
example.com.
try:
results = search(dork_query, num_results=num_results)
for idx, url in enumerate(results):
print(f"[{idx+1}] {url}")
except Exception as e:
print(f"⚠ Error: {e}")