Results 1 to 25 of 63
Hybrid View
-
5th September 2007 23:26 #1Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
char key=123; read char; (xor char with key) to output; bit-flip key; repeat
cp-1251
-
6th September 2007 00:08 #2
... ?
... , - ...
-
6th September 2007 00:15 #3Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
.
: , ( ) (hex) 9fd0 80d1 b5d0
-
6th September 2007 00:23 #4
bit-flip ? . -, '
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
6th September 2007 00:24 #5Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
. .
-
6th September 2007 00:26 #6

: ? ?EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
6th September 2007 00:30 #7Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
hexdump
, kedit, cp1251
void s(char *i,char *k){*i^=*k;*k=~(*k);} i/o 5
Last edited by solar_sea; 6th September 2007 at 00:39.
-
6th September 2007 00:37 #8
! ' !
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
6th September 2007 02:16 #9
-
6th September 2007 01:12 #10
? .

:
managed . , property eof,#include <stdio.h>
int main()
{
FILE *encoded;
int key = 123;
encoded = fopen("/home/elmo/nachalo.enc","r");
while(feof(encoded) == 0)
{
printf("%c", fgetc(encoded)^key);
key = ~(key);
}
fclose(encoded);
return 0;
}
-
6th September 2007 01:17 #11Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
feof 0_o, fseek (.. SEEK_END). ( )
- , cp-1251,
Dump , cp1251, "
" , / . bg_BG CP1251 locales .
Last edited by solar_sea; 6th September 2007 at 01:28.
-
6th September 2007 01:24 #12
-
6th September 2007 02:11 #13Crashing is NOT normal. It is accepted as normal because of Windows.
Ah the Geforce 440 MX...all the power of the Geforce 2MX, without nearly a damn being changed...
-
6th September 2007 02:14 #14
#include <stdio.h>
-Code:int main(int argc, char* argv[]){ FILE *encoded,*decoded; int key = 123; char cBuffer; encoded = fopen("C:\\nachalo.enc","r"); decoded = fopen("C:\\decoded.txt","w+"); while(feof(encoded) == 0){ cBuffer = fgetc(encoded)^key; fputc( cBuffer ,decoded); key = ~(key); } fclose(decoded); fclose(encoded); return 0; }
.
. ?
""
- !EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
6th September 2007 02:23 #15
. .
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
6th September 2007 02:27 #16
-
6th September 2007 02:31 #17
!

:
:Code:int main(int argc, char* argv[]){ FILE *encoded,*decoded; unsigned char key = 123; char cBuffer; encoded = fopen("C:\\nachalo.enc","r"); decoded = fopen("C:\\decoded.txt","w+"); while(1){ cBuffer = fgetc(encoded)^key; if(feof(encoded)) break; fputc( cBuffer ,decoded); key = ~(key); } fclose(decoded); fclose(encoded); return 0; }
Code:int _tmain(int argc, TCHAR* argv[]){ HANDLE hInputFile, hOutputFile; TCHAR cBuffer, key = 123; DWORD dwBytesWritten, dwBytesRead = sizeof(TCHAR); if((hInputFile = CreateFile(__TEXT("C:\\nachalo.enc"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL)) == INVALID_HANDLE_VALUE) return -1; if((hOutputFile = CreateFile(__TEXT("C:\\decoded.enc"), GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL)) == INVALID_HANDLE_VALUE){ CloseHandle(hInputFIile); return -1; } while(dwBytesRead){ // TRUE, if(!ReadFile(hInputFile,&cBuffer,sizeof(TCHAR),&dwBytesRead,NULL)) break; if(dwBytesRead == 0) if(GetLastError() != ERROR_HANDLE_EOF ){ CloseHandle(hOutputFile); CloseHandle(hInputFile); return -1; } else break; cBuffer^= key; key = ~key; if(!WriteFile(hOutputFile, &cBuffer, sizeof(TCHAR), &dwBytesWritten, NULL)){ CloseHandle(hOutputFile); CloseHandle(hInputFile); return -1; } } SetEndOfFile(hOutputFile); CloseHandle(hOutputFile); CloseHandle(hInputFile); return 0; }Last edited by Bombera; 6th September 2007 at 03:37.
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
6th September 2007 10:20 #18Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
, win32 ?

Code:#include <stdio.h> #include <stdlib.h> void s(char *i,char *k){*i^=*k;*k=~(*k);} int main(int argc, char *argv[]){ FILE *i; FILE *o; char temp,key; long l,in; key = atoi (argv[1]); i=fopen(argv[2],"rb"); fseek(i, 0, SEEK_END);l=ftell(i);rewind(i); // , feof .. o=fopen(argv[3],"wb+"); for(in=0;in<l;in++){ fread(&temp,1,1,i); s(&temp,&key); fwrite(&temp,1,1,o); } fclose(i); fclose(o); return 0; }
-
6th September 2007 18:46 #19
, UTF-8, , CP1251

Python:
>>> print ''.join(map(lambda c,i: chr(ord(c) ^ (123, 132)[i % 2]), [c for c in open('nachalo.enc','r').read()], range(os.stat('nachalo.enc')[6]))).decode('UTF-8')
( UTF-8, .decode('UTF-8'))Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
6th September 2007 20:09 #20Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
. , , . ( ?
) ?
-
6th September 2007 20:26 #21

, ?
Last edited by thedivaka; 6th September 2007 at 20:53.
-
6th September 2007 20:36 #22
, ?
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
6th September 2007 21:07 #23
-- http://anrieff.no-ip.org/challenge.html ( -insulting )
, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
6th September 2007 21:21 #24
print ''.join([chr(int(c,2)) for c in """110000 1001101 1000111 100001 100001 100000 ... 101110 100000""".split()]
-insulting , ?
.. Python Challenge
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
6th September 2007 23:00 #25Registered User
Join Date: Aug:2006
Location:
Posts: 4,052
anrieff- , , omg!!

(- )




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in