Quote:
Originally Posted by Cypherx
|
Ummm,,, Heres what you Put,,,
if(packetID(b)==0x3ec)
{
if(b[b[25] + 29] == 35)
{
int a = b[25] + 30;
int l = b[0] - 3;
String c="";
for(int i=a; i<l; i++)
c+=(char)b[i];
if(c.equalsIgnoreCase("scentbot"))
{
Heres the Original QOproxy version:
if(packetID(b)==0x3ec)
{
int a=18+b[17]&0xff;
a+=(b[a]&0xff)+1;
if(b[a]==0) a++;
if(b[a+1]==35)
{
int l=(b[a]&0xff);
String c="";
for(int i=a+2; i<a+l+1; i++)
c+=(char)b[i];
if(c.equalsIgnoreCase("scentbot"))
{
***************************************
And Heres the Venom Versions (* 3 refrences to 0x3ec *) :
***************************************
loc_3AAC: // CODE XREF: J+AB8j J+ACCj
ldarg.0
ldloc.2
callvirt int32 a.a::I(int8[])
ldc.i4 0x3EC
bne.un loc_50FA
ldc.i4.s 0x12
ldloc.2
ldc.i4.s 0x11
ldelem.i1
conv.i4
add
ldc.i4 0xFF
and
stloc.s 0x2B
ldloc.2
ldloc.s 0x2B
ldelem.i1
conv.i4
stloc.s 0x2C
ldstr ""
stloc.s 0x2D
ldloc.2
ldloc.s 0x2B
ldelem.i1
conv.i4
ldc.i4.0
ble.s loc_3B16
ldc.i4.1
stloc.s 0x2E
br.s loc_3B0E
**************************************
loc_864D: // CODE XREF: sub_8620+1Aj
ldarg.0
ldfld class a.a d::A
ldloc.1
callvirt int32 a.a::I(int8[])
stloc.2
ldarg.0
ldfld class a.a d::A
ldloc.1
ldstr "\r\nServer to Client"
callvirt void a.a::g(int8[], class System.String)
ldc.i4.0
stloc.3
ldc.i4.0
stloc.s 4
ldloc.2
ldc.i4 0x3EC
bne.un loc_891C
ldarg.0
ldfld class a.a d::A
ldfld bool a.a::C
brfalse loc_891C
ldstr ""
stloc.s 5
ldstr ""
stloc.s 6
ldstr ""
stloc.s 7
.try {
ldloc.1
ldc.i4.s 0x11
ldelem.i1
conv.i4
stloc.s 8
ldc.i4.1
stloc.s 9
br.s loc_86D2
**********************************
loc_AC87: // CODE XREF: sub_8620:loc_8917j
// sub_8620:loc_8AA6j ...
ldloc.2
ldc.i4 0x3EC
beq.s loc_ACA1
ldarg.0
ldfld class a.a d::A
ldarg.0
ldfld class c d::A
ldloc.1
callvirt void a.a::G(class c, int8[])
***********************************
So

any ideas what needs changing? cause me,,, im stumped...