Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
SnippetCat committed Apr 20, 2024
1 parent 4d830d6 commit 2126180
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rad-be-damned/chall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ categories:
- crypto
value: 125
flag:
file: flag.txt
file: ./flag.txt
description: |
My friend seems to be communicating something but I can't make out anything.
Why do we live so close to Chernobyl anyways?
Expand Down
2 changes: 1 addition & 1 deletion rad-be-damned/flag_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def crc_encrypt(letter: str):
def expose_to_radiation(letcrc: str):
#generates 1 random failure in a given bitstring
length_crc = len(letcrc)
pos = random.randint(5, length_crc - 1) #Only mutates the actual data bits (not the CRC bits)
pos = random.randint(0, length_crc - 1) #Only mutates the actual data bits (not the CRC bits)
bit_mask = 2**pos
rad_let = int(letcrc, base=2) ^ bit_mask
rad_bin = format(rad_let, "0" + f"{length_crc}" + "b")
Expand Down
5 changes: 3 additions & 2 deletions rad-be-damned/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<style>
body{
background-color: aqua;
font-family:verdana
font-family:verdana;
overflow:hidden;
}
h6{
margin: 9px;
Expand All @@ -16,7 +17,7 @@
}
.flag-display {
text-align: center;
transform: translate(43%, 8.5%)
transform: translate(43%, 7%)
}
.flag-pole {
color: rgb(115, 115, 115);
Expand Down

0 comments on commit 2126180

Please sign in to comment.