sentinelx-labs 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sentinelx_labs-0.1.0/LICENSE +1 -0
- sentinelx_labs-0.1.0/PKG-INFO +77 -0
- sentinelx_labs-0.1.0/README.md +61 -0
- sentinelx_labs-0.1.0/pyproject.toml +27 -0
- sentinelx_labs-0.1.0/sentinelx_labs/__init__.py +2 -0
- sentinelx_labs-0.1.0/sentinelx_labs/__main__.py +52 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/__init__.py +0 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_01.txt +66 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_02.txt +108 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_03.txt +167 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_04.txt +222 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_05.txt +49 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_06.txt +117 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_07.txt +158 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_08.txt +78 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_10.txt +68 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_11.txt +29 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_12.txt +49 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_13.txt +48 -0
- sentinelx_labs-0.1.0/sentinelx_labs/practicals/practical_14.txt +42 -0
- sentinelx_labs-0.1.0/sentinelx_labs/source_documents.zip +0 -0
- sentinelx_labs-0.1.0/sentinelx_labs.egg-info/PKG-INFO +77 -0
- sentinelx_labs-0.1.0/sentinelx_labs.egg-info/SOURCES.txt +26 -0
- sentinelx_labs-0.1.0/sentinelx_labs.egg-info/dependency_links.txt +1 -0
- sentinelx_labs-0.1.0/sentinelx_labs.egg-info/entry_points.txt +2 -0
- sentinelx_labs-0.1.0/sentinelx_labs.egg-info/top_level.txt +1 -0
- sentinelx_labs-0.1.0/setup.cfg +4 -0
- sentinelx_labs-0.1.0/setup.py +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
MIT License\n\nCopyright (c) 2026 SentinelX Labs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the 'Software'), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY.\n
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sentinelx-labs
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Numbered ethical hacking practical reference and code viewer
|
|
5
|
+
Author: SentinelX Labs
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Topic :: Education
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
Dynamic: requires-python
|
|
16
|
+
|
|
17
|
+
# SentinelX Labs
|
|
18
|
+
|
|
19
|
+
A numbered Python package for displaying the Ethical Hacking practical material included in the supplied source ZIP. It is a **reference/code viewer**: it displays practical steps and source code; it does not execute the tools or commands shown in the practicals.
|
|
20
|
+
|
|
21
|
+
## Practicals
|
|
22
|
+
|
|
23
|
+
1. Encryption, Decryption and Hashing
|
|
24
|
+
2. CrypTool and HashCalc
|
|
25
|
+
3. Reconnaissance and Footprinting
|
|
26
|
+
4. Windows Commands and Network Utilities
|
|
27
|
+
5. Steganography
|
|
28
|
+
6. Scanning using Nmap
|
|
29
|
+
7. Wireshark (Sniffer)
|
|
30
|
+
8. DoS Demonstration using Colasoft Packet Builder
|
|
31
|
+
10. Password Cracking using John the Ripper and Hashcat
|
|
32
|
+
11. System Hacking using auditpol
|
|
33
|
+
12. Stealth and Hidden Files
|
|
34
|
+
13. Cain and Abel Dictionary Attack
|
|
35
|
+
14. DVWA Tool
|
|
36
|
+
|
|
37
|
+
The practical text is based on the supplied documents. The original ZIP is also included in the package as `source_documents.zip` to retain embedded images and original document layouts.
|
|
38
|
+
|
|
39
|
+
## Run from Python
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
import runpy
|
|
43
|
+
runpy.run_module("sentinelx_labs", run_name="__main__")
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Install from PyPI
|
|
47
|
+
|
|
48
|
+
```cmd
|
|
49
|
+
python -m pip install --upgrade sentinelx-labs
|
|
50
|
+
sentinelx-labs
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or launch the menu with:
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
```cmd
|
|
57
|
+
python -m sentinelx_labs
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Build and publish
|
|
61
|
+
|
|
62
|
+
From the project folder:
|
|
63
|
+
|
|
64
|
+
```cmd
|
|
65
|
+
python -m pip install --upgrade build twine
|
|
66
|
+
python -m build
|
|
67
|
+
python -m twine check dist/*
|
|
68
|
+
python -m twine upload dist/*
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Safety
|
|
72
|
+
|
|
73
|
+
This package is educational reference material. Only perform security testing on systems, accounts, and networks you own or have explicit authorization to test. Prefer isolated lab systems and intentionally vulnerable training applications. The package does not perform scans, attacks, password recovery, or network operations itself.
|
|
74
|
+
|
|
75
|
+
## Source
|
|
76
|
+
|
|
77
|
+
The content comes from the included practicals (Practical 9 and Practical 15 are omitted by request) and supporting files in the uploaded archive. Some source documents contain screenshots or blank output placeholders; those are retained in the original `source_documents.zip` archive.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# SentinelX Labs
|
|
2
|
+
|
|
3
|
+
A numbered Python package for displaying the Ethical Hacking practical material included in the supplied source ZIP. It is a **reference/code viewer**: it displays practical steps and source code; it does not execute the tools or commands shown in the practicals.
|
|
4
|
+
|
|
5
|
+
## Practicals
|
|
6
|
+
|
|
7
|
+
1. Encryption, Decryption and Hashing
|
|
8
|
+
2. CrypTool and HashCalc
|
|
9
|
+
3. Reconnaissance and Footprinting
|
|
10
|
+
4. Windows Commands and Network Utilities
|
|
11
|
+
5. Steganography
|
|
12
|
+
6. Scanning using Nmap
|
|
13
|
+
7. Wireshark (Sniffer)
|
|
14
|
+
8. DoS Demonstration using Colasoft Packet Builder
|
|
15
|
+
10. Password Cracking using John the Ripper and Hashcat
|
|
16
|
+
11. System Hacking using auditpol
|
|
17
|
+
12. Stealth and Hidden Files
|
|
18
|
+
13. Cain and Abel Dictionary Attack
|
|
19
|
+
14. DVWA Tool
|
|
20
|
+
|
|
21
|
+
The practical text is based on the supplied documents. The original ZIP is also included in the package as `source_documents.zip` to retain embedded images and original document layouts.
|
|
22
|
+
|
|
23
|
+
## Run from Python
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
import runpy
|
|
27
|
+
runpy.run_module("sentinelx_labs", run_name="__main__")
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Install from PyPI
|
|
31
|
+
|
|
32
|
+
```cmd
|
|
33
|
+
python -m pip install --upgrade sentinelx-labs
|
|
34
|
+
sentinelx-labs
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Or launch the menu with:
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
```cmd
|
|
41
|
+
python -m sentinelx_labs
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Build and publish
|
|
45
|
+
|
|
46
|
+
From the project folder:
|
|
47
|
+
|
|
48
|
+
```cmd
|
|
49
|
+
python -m pip install --upgrade build twine
|
|
50
|
+
python -m build
|
|
51
|
+
python -m twine check dist/*
|
|
52
|
+
python -m twine upload dist/*
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Safety
|
|
56
|
+
|
|
57
|
+
This package is educational reference material. Only perform security testing on systems, accounts, and networks you own or have explicit authorization to test. Prefer isolated lab systems and intentionally vulnerable training applications. The package does not perform scans, attacks, password recovery, or network operations itself.
|
|
58
|
+
|
|
59
|
+
## Source
|
|
60
|
+
|
|
61
|
+
The content comes from the included practicals (Practical 9 and Practical 15 are omitted by request) and supporting files in the uploaded archive. Some source documents contain screenshots or blank output placeholders; those are retained in the original `source_documents.zip` archive.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sentinelx-labs"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Numbered ethical hacking practical reference and code viewer"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = {text = "MIT"}
|
|
12
|
+
authors = [{name = "SentinelX Labs"}]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
"Topic :: Education",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.scripts]
|
|
21
|
+
sentinelx-labs = "sentinelx_labs.__main__:main"
|
|
22
|
+
|
|
23
|
+
[tool.setuptools]
|
|
24
|
+
include-package-data = true
|
|
25
|
+
|
|
26
|
+
[tool.setuptools.package-data]
|
|
27
|
+
sentinelx_labs = ["practicals/*.txt", "source_documents.zip"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
from importlib.resources import files
|
|
2
|
+
|
|
3
|
+
PRACTICALS = {
|
|
4
|
+
1: 'Encryption, Decryption and Hashing',
|
|
5
|
+
2: 'CrypTool and HashCalc',
|
|
6
|
+
3: 'Reconnaissance and Footprinting',
|
|
7
|
+
4: 'Windows Commands and Network Utilities',
|
|
8
|
+
5: 'Steganography',
|
|
9
|
+
6: 'Scanning using Nmap',
|
|
10
|
+
7: 'Wireshark (Sniffer)',
|
|
11
|
+
8: 'DoS Demonstration using Colasoft Packet Builder',
|
|
12
|
+
10: 'Password Cracking using John the Ripper and Hashcat',
|
|
13
|
+
11: 'System Hacking using auditpol',
|
|
14
|
+
12: 'Stealth and Hidden Files',
|
|
15
|
+
13: 'Cain and Abel Dictionary Attack',
|
|
16
|
+
14: 'DVWA Tool',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def show_practical(number: int) -> None:
|
|
21
|
+
resource = files("sentinelx_labs").joinpath("practicals", f"practical_{number:02d}.txt")
|
|
22
|
+
print("\n" + "=" * 78)
|
|
23
|
+
print(f"Practical {number}: {PRACTICALS[number]}")
|
|
24
|
+
print("=" * 78 + "\n")
|
|
25
|
+
print(resource.read_text(encoding="utf-8"))
|
|
26
|
+
input("\nPress Enter to return to the menu...")
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def main() -> None:
|
|
30
|
+
while True:
|
|
31
|
+
print("\nSENTINELX-LABS | Ethical Hacking Practicals")
|
|
32
|
+
print("-" * 48)
|
|
33
|
+
for number, title in PRACTICALS.items():
|
|
34
|
+
print(f"{number:2}. {title}")
|
|
35
|
+
print(" 0. Exit")
|
|
36
|
+
choice = input("\nEnter practical number (0 to exit): ").strip()
|
|
37
|
+
if choice == "0":
|
|
38
|
+
print("Exiting SentinelX Labs.")
|
|
39
|
+
break
|
|
40
|
+
try:
|
|
41
|
+
number = int(choice)
|
|
42
|
+
except ValueError:
|
|
43
|
+
print("Please enter a valid practical number.")
|
|
44
|
+
continue
|
|
45
|
+
if number in PRACTICALS:
|
|
46
|
+
show_practical(number)
|
|
47
|
+
else:
|
|
48
|
+
print("Invalid selection. Choose a listed practical number, or 0 to exit.")
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if __name__ == "__main__":
|
|
52
|
+
main()
|
|
File without changes
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
Practical 1: Encryption, Decryption and Hashing
|
|
2
|
+
|
|
3
|
+
===== SOURCE: Encrypt_decrypt_&_Hashing_algo.docx =====
|
|
4
|
+
|
|
5
|
+
Prac 1:-Encrypt and decrypt algo
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Code:-
|
|
9
|
+
|
|
10
|
+
def encrypt(text,s):
|
|
11
|
+
result=""
|
|
12
|
+
for i in range(len(text)):
|
|
13
|
+
char=text[i]
|
|
14
|
+
if (char.isupper()):
|
|
15
|
+
result+=chr((ord(char) + s-65) % 26 +65)
|
|
16
|
+
else:
|
|
17
|
+
result+=chr((ord(char) + s-97) % 26 +97)
|
|
18
|
+
|
|
19
|
+
return result
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def decrypt(text,s):
|
|
23
|
+
result=""
|
|
24
|
+
for i in range(len(text)):
|
|
25
|
+
char=text[i]
|
|
26
|
+
if (char.isupper()):
|
|
27
|
+
result+=chr((ord(char) - s-65) % 26 +65)
|
|
28
|
+
else:
|
|
29
|
+
result+=chr((ord(char) - s-97) % 26 +97)
|
|
30
|
+
|
|
31
|
+
return result
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
text="attackontitan"
|
|
35
|
+
s=5
|
|
36
|
+
print("text is:",text)
|
|
37
|
+
print("shift of:",s)
|
|
38
|
+
print("encrypted result:",encrypt(text,s))
|
|
39
|
+
de=encrypt(text,s)
|
|
40
|
+
|
|
41
|
+
print(decrypt(de,s))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
Output:-
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
2.Hashing
|
|
50
|
+
import bcrypt
|
|
51
|
+
|
|
52
|
+
pwd=b'Mypass'
|
|
53
|
+
|
|
54
|
+
salt=bcrypt.gensalt()
|
|
55
|
+
|
|
56
|
+
hashed=bcrypt.hashpw(pwd,salt)
|
|
57
|
+
|
|
58
|
+
print("Salt :")
|
|
59
|
+
print(salt)
|
|
60
|
+
|
|
61
|
+
print("Hashed")
|
|
62
|
+
|
|
63
|
+
print(hashed)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Output:-
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Practical 2: CrypTool and HashCalc
|
|
2
|
+
|
|
3
|
+
===== SOURCE: Cryptool_prac2_Eh.docx =====
|
|
4
|
+
|
|
5
|
+
Practicle 2:-
|
|
6
|
+
Cyptool
|
|
7
|
+
|
|
8
|
+
1.Symmetric Algorithms
|
|
9
|
+
|
|
10
|
+
a.Caesar Cipher
|
|
11
|
+
|
|
12
|
+
Explanation:-
|
|
13
|
+
The Caesar Cipher is one of the simplest and oldest methods of encrypting messages, named after Julius Caesar, who reportedly used it to protect his military communications. This technique involves shifting the letters of the alphabet by a fixed number of places. For example, with a shift of three, the letter 'A' becomes 'D', 'B' becomes 'E', and so on. Despite its simplicity, the Caesar Cipher formed the groundwork for modern cryptographic techniques.
|
|
14
|
+
|
|
15
|
+
Encrypt:-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Decrypt:-
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
2.vigenere Cipher
|
|
27
|
+
EXPLAIN:
|
|
28
|
+
Vigenere Cipher is a method of encrypting alphabetic text. It uses a simple form of polyalphabetic substitution. A polyalphabetic cipher is any cipher based on substitution, using multiple substitution alphabets. The encryption of the original text is done using the Vigenère square or Vigenère table.
|
|
29
|
+
The table consists of the alphabets written out 26 times in different rows, each alphabet shifted cyclically to the left compared to the previous alphabet, corresponding to the 26 possible Caesar Ciphers.
|
|
30
|
+
At different points in the encryption process, the cipher uses a different alphabet from one of the rows.
|
|
31
|
+
The alphabet used at each point depends on a repeating keyword.
|
|
32
|
+
|
|
33
|
+
Encrypt:-
|
|
34
|
+
|
|
35
|
+
Decryption:-
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
3.Hill Cipher
|
|
40
|
+
Explain:-
|
|
41
|
+
In the context of classical cryptography, the Hill Cipher uses a polygraphic substitution cipher, which means homogeneous substitution over many levels of blocks. This polygraphic substitution cipher allows Hill Cipher to function easily with digraphs (two-letter blocks), trigraphs (three-letter blocks), or any other multiple-sized blocks to create a uniform cipher.
|
|
42
|
+
Hill Cipher is based on linear algebra, advanced matrices (matrix multiplication and matrix inverses), and modulo arithmetic principles. Obviously, it is a more mathematical cipher than others.
|
|
43
|
+
Hill Cipher is also a block cipher. A block cipher uses a deterministic algorithm and a symmetric key to encrypt a block of text. Unlike stream ciphers, it does not require encrypting one bit at a time. Hill Cipher is a block cipher, which means it can function with any block size.
|
|
44
|
+
While Hill Cipher is digraphic in nature, it can grow to multiply any letter size, adding complexity and reliability for improved usage. Because most of Hill Ciphers' problems and solutions are mathematical in nature, it is simple to hide letters with precision.
|
|
45
|
+
Since the Hill cipher is fairly difficult, let's encrypt the text "CODE" and then decipher the resulting ciphertext to learn how it works. To keep the example basic, we will use a simple substitution method in which the letter A is mapped to 0, B is mapped to 1, and so on to adhere to a 2x2 key matrix. The Hill cipher becomes more complicated as the key matrix size grows.
|
|
46
|
+
Encrypt:-
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Decrypt:-
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
4.Playfair cipher
|
|
54
|
+
EXPLAIN:
|
|
55
|
+
The Playfair cipher, also known as the Playfair square or the Wheatstone-Playfair cipher, is a manual symmetric encryption scheme that was the first that used literal digram substitution. Charles Wheatstone created the technique in 1854, but it is named after Lord Playfair to promote the use of it.
|
|
56
|
+
The approach encrypts pairs of letters rather than single letters, as is the case with the simple substitution cipher and the more complex Vigen ere cIpher systems that were previously used.
|
|
57
|
+
The Playfair cipher is thus substantially more difficult to break because the frequency analysis used for basic substitution ciphers does not apply to it. Frequency analysis of bigrams is possible, but extremely complex.
|
|
58
|
+
Encryption Technique
|
|
59
|
+
The algorithm consists of 2 steps:
|
|
60
|
+
Generate the key Square (5x5):
|
|
61
|
+
|
|
62
|
+
The key square is a 5×5 grid of alphabets that acts as the key for encrypting the plaintext. Each of the 25 alphabets must be unique and one letter of the alphabet (usually J) is omitted from the table (as the table can hold only 25 alphabets). If the plaintext contains J, then it is replaced by I.
|
|
63
|
+
The initial alphabets in the key square are the unique alphabets of the key in the order in which they appear followed by the remaining letters of the alphabet in order.
|
|
64
|
+
Algorithm to encrypt the plain text: The plaintext is split into pairs of two letters (digraphs). If there is an odd number of letters, a Z is added to the last letter.
|
|
65
|
+
Decryption Technique
|
|
66
|
+
Decrypting the Playfair cipher is as simple as doing the same process in reverse. The receiver has the same key and can create the same key table, and then decrypt any messages made using that key.
|
|
67
|
+
The Algorithm consists of 2 steps:
|
|
68
|
+
Generate the key Square(5x5) at the receiver's end:
|
|
69
|
+
|
|
70
|
+
The key square is a 5×5 grid of alphabets that acts as the key for encrypting the plaintext. Each of the 25 alphabets must be unique and one letter of the alphabet (usually J) is omitted from the table (as the table can hold only 25 alphabets). If the plaintext contains J, then it is replaced by I.
|
|
71
|
+
The initial alphabets in the key square are the unique alphabets of the key in the order in which they appear followed by the remaining letters of the alphabet in order.
|
|
72
|
+
Algorithm to decrypt the ciphertext: The ciphertext is split into pairs of two letters (digraphs).
|
|
73
|
+
|
|
74
|
+
Encryption:-
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Decryption:-
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
5.Byte Addition
|
|
84
|
+
A "byte addition cipher" refers to an encryption technique that modifies data by adding a secret key to the numerical value of each plaintext byte (typically modulo 256). In modern computing, this modular addition or subtraction is widely used in algorithms like AES, where bitwise XOR acts as a specialized, carryless version of addition. [1, 2, 3, 4, 5]
|
|
85
|
+
How It Works (Modulo 256)
|
|
86
|
+
Since a standard byte consists of 8 bits, its value ranges from 0 to 255. In a simple byte-addition cipher, the process uses modular arithmetic:
|
|
87
|
+
Encryption Formula: \(Ciphertext\ Byte = (Plaintext\ Byte + Key\ Byte) \pmod{256}\)
|
|
88
|
+
Decryption Formula: \(Plaintext\ Byte = (Ciphertext\ Byte - Key\ Byte) \pmod{256}\)
|
|
89
|
+
|
|
90
|
+
encryption:-
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
Decryption:-
|
|
94
|
+
|
|
95
|
+
===== SOURCE: HashCalc_prac2.docx =====
|
|
96
|
+
|
|
97
|
+
HashCalc
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
Text:-
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
File:-
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
Hex:-
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
Practical 3: Reconnaissance and Footprinting
|
|
2
|
+
|
|
3
|
+
===== SOURCE: Reconnaissance_Footprinting_Prac3 _EH.docx =====
|
|
4
|
+
|
|
5
|
+
Practical 3 Google dorks
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
1. Display R Programming PDF files from TutorialsPoint.
|
|
9
|
+
Dork:
|
|
10
|
+
filetype:pdf site:tutorialspoint.com "R programming"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
2. Display the Facebook page of DCSIT.
|
|
14
|
+
Dork:
|
|
15
|
+
site:facebook.com DCSIT
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
3. Display information about COVID-19 vaccinations.
|
|
21
|
+
Dork:
|
|
22
|
+
intext:"COVID-19 vaccinations"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
4. Display all web pages that link to Apple's website.
|
|
26
|
+
Dork:
|
|
27
|
+
link:apple.com
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
5. Display Instagram pages related to food channels.
|
|
31
|
+
Dork:
|
|
32
|
+
site:instagram.com food
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
6. Display all PDF files from the NASA website.
|
|
36
|
+
Dork:
|
|
37
|
+
filetype:pdf site:nasa.gov
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
7. Display all PHP files containing information about Bill Gates.
|
|
41
|
+
Dork:
|
|
42
|
+
inurl:php intext:"Bill Gates"
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
8. Display information related to the New Education Policy.
|
|
46
|
+
Dork:
|
|
47
|
+
allintext:"New Education Policy"
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
9. Display today's weather in Australia.
|
|
51
|
+
Dork:
|
|
52
|
+
weather:Australia
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
10. Display all web pages containing copyright information.
|
|
56
|
+
Dork:
|
|
57
|
+
Allintext:"copyright"
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
11. Find national-level security plans from Indian government websites.
|
|
61
|
+
Dork:
|
|
62
|
+
intext:"security plans" site:gov.in
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
12. Display web pages related to the Mumbai Cycling Marathon 2023.
|
|
66
|
+
Dork:
|
|
67
|
+
allintext:"Mumbai Cycling Marathon 2023"
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
13. Display information about Python TypeError.
|
|
71
|
+
Dork:
|
|
72
|
+
TypeError Python
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
14. Find routes from Mumbai to Gujarat.
|
|
76
|
+
Dork:
|
|
77
|
+
allintext:"Mumbai to Gujarat routes"
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
15. Display all web pages related to connecting to Facebook.
|
|
81
|
+
Dork:
|
|
82
|
+
allintitle:"Connect to Facebook"
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
16. Find the Bitcoin White Paper.
|
|
86
|
+
Dork:
|
|
87
|
+
intext:Bitcoin filetype:pdf
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
17. Display today's Maharashtra pandemic report.
|
|
91
|
+
Dork:
|
|
92
|
+
allintext:"Maharashtra pandemic report today"
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
18. Find a video of Prime Minister Modi explaining the importance of Yoga on International Yoga Day.
|
|
96
|
+
Dork:
|
|
97
|
+
video:Modi Yoga Day
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
19. Display the ATKT timetable for June 2023 from Ruia College.
|
|
101
|
+
Dork:
|
|
102
|
+
site:ruiacollege.edu allintext:"ATKT timetable June 2023"
|
|
103
|
+
|
|
104
|
+
20. Display today's weather in Mumbai.
|
|
105
|
+
Dork:
|
|
106
|
+
intitle:weather Mumbai
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
21. Display information about websites containing the keyword "Inspiration".
|
|
110
|
+
Dork:
|
|
111
|
+
intitle:Inspiration
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
22. Display PDF files related to Cyber Security.
|
|
115
|
+
Dork:
|
|
116
|
+
filetype:pdf allintext:"Cyber Security"
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
23. Display information about Telegram.
|
|
120
|
+
Dork:
|
|
121
|
+
info:telegram.org
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
24. Display Ruia College admission notices for 2023.
|
|
125
|
+
Dork:
|
|
126
|
+
site:ruiacollege.edu allintext:"Admissions 2023"
|
|
127
|
+
|
|
128
|
+
25. Display the definition of the term "Hacking".
|
|
129
|
+
Dork:
|
|
130
|
+
Define:hacking
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
Shodan dork
|
|
137
|
+
Search 1: Apache Servers in the United States
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
Search 2: Open MongoDB Databases
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
Search 3: IoT Devices in a Specific City
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
WHOIS in Python (Advanced Use)
|
|
152
|
+
1. WHOIS Lookup Using Python
|
|
153
|
+
import whois
|
|
154
|
+
|
|
155
|
+
domain = whois.whois("www.ruiacollege.edu")
|
|
156
|
+
print(domain)
|
|
157
|
+
|
|
158
|
+
Output
|
|
159
|
+
|
|
160
|
+
2.
|
|
161
|
+
import whois
|
|
162
|
+
|
|
163
|
+
domain = whois.whois("kraftonindiaesports.com")
|
|
164
|
+
print(domain)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
1. Online WHOIS Lookup Tools
|