chore: import upstream snapshot with attribution
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 11:55:53 +08:00
commit dde272c4b8
19405 changed files with 2730632 additions and 0 deletions
@@ -0,0 +1,34 @@
---
id: 5ea9997bbec2e9bc47e94dae
title: Introduction and Setup
challengeType: 11
videoId: XeQ7ZKtb998
bilibiliIds:
aid: 718017704
bvid: BV13Q4y1k7hX
cid: 409033630
dashedName: introduction-and-setup
---
# --questions--
## --text--
What code editor and extension does the instructor recommend for developing penetration testing tools in Python?
## --answers--
Atom and the atom-python-run extension.
---
VSCode and Microsoft's Python extension.
---
Sublime Text and the Anaconda package.
## --video-solution--
2
@@ -0,0 +1,34 @@
---
id: 5ea9997bbec2e9bc47e94daf
title: Understanding Sockets and Creating a TCP Server
challengeType: 11
videoId: F1QI9tNuDQg
bilibiliIds:
aid: 848005038
bvid: BV1bL4y1a7kJ
cid: 409034113
dashedName: understanding-sockets-and-creating-a-tcp-server
---
# --questions--
## --text--
Which of the following functions creates a socket object?
## --answers--
`socket.bind((host, port))`
---
`socket.gethostbyname()`
---
`socket.socket(socket.AF_INET, socket.SOCK_STREAM)`
## --video-solution--
3
@@ -0,0 +1,34 @@
---
id: 5ea9997bbec2e9bc47e94db0
title: Creating a TCP Client
challengeType: 11
videoId: ugYfJNTawks
bilibiliIds:
aid: 933058124
bvid: BV16M4y1g7zL
cid: 409034338
dashedName: creating-a-tcp-client
---
# --questions--
## --text--
Which socket object method lets you set the maximum amount of data your client accepts at once?
## --answers--
`.recv(1024)`
---
`.decode('ascii')`
---
`.connect(host, port)`
## --video-solution--
1
@@ -0,0 +1,34 @@
---
id: 5ea9997bbec2e9bc47e94db1
title: Developing an Nmap Scanner part 1
challengeType: 11
videoId: jYk9XaGoAnk
bilibiliIds:
aid: 805657338
bvid: BV1o34y1S7zf
cid: 414718986
dashedName: developing-an-nmap-scanner-part-1
---
# --questions--
## --text--
What is the correct command to install the Python 3 version of the `python-nmap` library?
## --answers--
`sudo apt install python-nmap`
---
`pip install python-nmap`
---
`pip3 install python-nmap`
## --video-solution--
3
@@ -0,0 +1,34 @@
---
id: 5ea9997bbec2e9bc47e94db2
title: Developing an Nmap Scanner part 2
challengeType: 11
videoId: a98PscnUsTg
bilibiliIds:
aid: 505526943
bvid: BV1Hg411c7oE
cid: 409034761
dashedName: developing-an-nmap-scanner-part-2
---
# --questions--
## --text--
Which of the following allows you to scan for UDP ports between 21 to 443?
## --answers--
`.scan(ip_addr, '21-443', '-v -sU')`
---
`.scan(ip_addr, '1-1024', '-v -sS')`
---
`.scan(ip_addr, '21-443', '-v -sS')`
## --video-solution--
1
@@ -0,0 +1,47 @@
---
id: 5ea9997bbec2e9bc47e94db3
title: Developing a Banner Grabber
challengeType: 11
videoId: CeGW761BIsA
bilibiliIds:
aid: 633014533
bvid: BV1Sb4y127H9
cid: 409036288
dashedName: developing-a-banner-grabber
---
# --questions--
## --text--
Fill in the blanks to complete the `banner` function below:
```py
def banner(ip, port):
s = socket.socket()
s.__A__((ip, __B__))
print(s.recv(1024))
```
## --answers--
A: `connect`
B: `port`
---
A: `getsockname`
B: `'1-1024'`
---
A: `connect`
B: `int(port)`
## --video-solution--
3
@@ -0,0 +1,34 @@
---
id: 5ea9997bbec2e9bc47e94db4
title: Developing a Port Scanner
challengeType: 11
videoId: z_qkqZS7KZ4
bilibiliIds:
aid: 208077317
bvid: BV1Uh411p7HS
cid: 409036706
dashedName: developing-a-port-scanner
---
# --questions--
## --text--
What is the main difference between the `.connect()` and `.connect_ex()` methods?
## --answers--
There is no difference between the two methods.
---
If there is an error or if no host is found, `.connect()` returns an error code while `.connect_ex()` raises an exception.
---
If there is an error or if no host is found, `.connect()` raises an exception while `.connect_ex()` returns an error code.
## --video-solution--
3