Disgusted by FreeDOS 1.3RC installation CD (Users)
This reproduces the function of REPACK.C in Python:
import sys
def main():
outl = []
bb = b"".join(open(sys.argv[1], "rb").read().split(b"\r\n"))
for p in range(0, len(bb)-1, 16):
t = bb[p:p+16]
d = 0
for n in range(4):
v = 0
for m in reversed(t[:4]):
v = v*92 + m-34
d = (d<<26) + v
t = t[4:]
outl.append(d.to_bytes(13, "big"))
lcorr = bb[-1]-34-52
assert lcorr<0
open(sys.argv[2], "wb").write(b"".join(outl)[:lcorr])
main()
Complete thread:
- Disgusted by FreeDOS 1.3RC installation CD - Laaca, 29.04.2021, 13:44 (Users)
- Disgusted by FreeDOS 1.3RC installation CD - RayeR, 29.04.2021, 16:17
- Disgusted by FreeDOS 1.3RC installation CD - tkchia, 29.04.2021, 18:23
- Disgusted by FreeDOS 1.3RC installation CD - RayeR, 29.04.2021, 18:53
- Disgusted by FreeDOS 1.3RC installation CD - tkchia, 29.04.2021, 19:06
- Disgusted by FreeDOS 1.3RC installation CD - RayeR, 29.04.2021, 18:53
- Disgusted by FreeDOS 1.3RC installation CD - Japheth, 29.04.2021, 18:44
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 29.04.2021, 19:15
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 29.04.2021, 20:26
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 29.04.2021, 20:43
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 29.04.2021, 21:14
- Disgusted by FreeDOS 1.3RC installation CD - RayeR, 30.04.2021, 14:59
- Disgusted by FreeDOS 1.3RC installation CD - mceric, 30.04.2021, 19:00
- Disgusted by FreeDOS 1.3RC installation CD - Ringding, 01.05.2021, 18:23
- Disgusted by FreeDOS 1.3RC installation CD - tkchia, 01.05.2021, 20:21
- Disgusted by FreeDOS 1.3RC installation CD - mceric, 02.05.2021, 00:16
- Disgusted by FreeDOS 1.3RC installation CD - Ringding, 03.05.2021, 17:22
- Disgusted by FreeDOS 1.3RC installation CD - Ringding, 03.05.2021, 20:36
- Disgusted by FreeDOS 1.3RC installation CD - tkchia, 01.05.2021, 20:21
- Disgusted by FreeDOS 1.3RC installation CD - RayeR, 03.05.2021, 22:49
- Disgusted by FreeDOS 1.3RC installation CD - Ringding, 01.05.2021, 18:23
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 01.05.2021, 18:26
- Disgusted by FreeDOS 1.3RC installation CD - mceric, 30.04.2021, 19:00
- Disgusted by FreeDOS 1.3RC installation CD - RayeR, 30.04.2021, 14:59
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 29.04.2021, 21:14
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 29.04.2021, 20:43
- Disgusted by FreeDOS 1.3RC installation CD - glennmcc, 29.04.2021, 20:26
- Disgusted by FreeDOS 1.3RC installation CD - Laaca, 29.04.2021, 23:04