You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
1
# Pygoat v2.0.1 Latest
2
2
3
+
### 1.Added
4
+
-**Custom Management Command:**
5
+
Added the `populate_challenges` command that reads challenge data from `challenge/challenge.json` and populates the `Challenge` table using `get_or_create` to prevent duplicate entries. The command handles missing files and JSON decode errors gracefully.
6
+
7
+
### 2.Changed
8
+
-**Challenge Model:**
9
+
- Updated the `save()` method to raise a `ValidationError` if `start_port` is greater than `end_port`.
10
+
- Enhanced flag handling by hashing the `flag` field using SHA-256 (prefixed with "hashed_") if it hasn't been hashed already.
0 commit comments