From 5de61903e45fe968f9c7cfdceeb3c4635419b9ae Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 29 Aug 2001 16:06:01 +0000 Subject: [PATCH] Added 32-bit CRCs for version and copyright strings to defeat the lame-o hex0rs. --- src/sbbs3/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 9f36804980..26eddeffc7 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -2971,6 +2971,14 @@ void DLLCALL bbs_thread(void* arg) status("Initializing"); + /* Defeat the lameo hex0rs - the name and copyright must remain intact */ + sprintf(str,"%.10s",VERSION_NOTICE); + if(crc32(COPYRIGHT_NOTICE,0)!=COPYRIGHT_CRC || crc32(str,0)!=SYNCHRONET_CRC) { + lprintf("!Corrupted library file"); + cleanup(1); + return; + } + #ifdef __unix__ /* Ignore "Broken Pipe" signal */ signal(SIGPIPE,SIG_IGN); #endif -- GitLab