Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and ... - Page 10

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.

127.0.0.1:

Quoted text here. Click to load it

That's Poohs doing, not mine. He claimed we're competing for smallest  
filesize.  
  
Quoted text here. Click to load it

Uhh, you're incorrect. Sometimes, demos are optimized to very well. Google  
assembler video demo groups. you've really missed out on some neat stuff,  
Jax.

  



--  
Take it easy... Don't let the sound of your own wheels drive you crazy.  
Lighten up while you still can. Don't even try to understand.  
Just find a place to make your stand and take it easy!


Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.


Quoted text here. Click to load it

Dustin why don't you concentrate of fixing the bugs in Exevalid?  

As far as I can tell its still used by Malwarebytes..... that means their
team is overlooking executables which could be viruses. You should tell
them!  

--  
Jax    :)

Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.


Quoted text here. Click to load it

The second versions only remaining "bug" afaik, is the fact bogus header  
information can cause it to flag an exe file as corrupted when it may not  
be. Which wouldn't have been any different than using ABS, actually. The  
revised version can deal with larger files properly; that you'd still never  
use it against.. so...

Maybe I'll addin the required code to determine if it's seeing an MZ DOS  
Stub vs an actual DOS only app, later. :)
  
Quoted text here. Click to load it

You wouldn't know either way what Malwarebytes is using. I already  
explained how exevaid is used by other researchers; As other tools run  
before exevalid and sometimes after, the chances of a legit malware sample  
being killed by it when it shouldn't have been, even the unrevised edition,  
are small.




--  
Take it easy... Don't let the sound of your own wheels drive you crazy.  
Lighten up while you still can. Don't even try to understand.  
Just find a place to make your stand and take it easy!


Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.


Quoted text here. Click to load it

You think so? This one is 1920 bytes:

print"Dusty Buster. Version 3"
print"Written by Pooh the cat April 25th, 2014"
print""
print"Enter filename: ";
input filename$;
a=varptr(filename$)
bload filename$ a 6
c=a
FOR s = 1 to 6
a=peek(c)
if s = 4 then
GOSUB m:
partialblock=c&
endif
if s < 6 then
b=a
endif
c=c+1
NEXT s
GOSUB m:
totalsize&=c&*512
partialblock=512-partialblock
totalsize&=totalsize&-partialblock
print" "
print"Totalsize ";
print totalsize&;
print" bytes"
end
m:
c&=256*a
c&=c&+b
RETURN  


(hahahahaha)


--  
Take it easy... Don't let the sound of your own wheels drive you crazy.  
Lighten up while you still can. Don't even try to understand.  
Just find a place to make your stand and take it easy!


Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.

On 5/10/2014 11:21 AM, Jax wrote:
Quoted text here. Click to load it
How do you know that?


Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.

On Sat, 10 May 2014 15:24:01 -0500, SeaNymph wrote:

Quoted text here. Click to load it

It doesn't, of course. It's only words to the troll.



--  
None are so hopelessly enslaved, as those who falsely believe they  
are free. The truth has been kept from the depth of their minds by  
masters who rule them with lies.  
-Johann von Goethe  

Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.


Quoted text here. Click to load it

Why didn't you do it this way then:

print"Dusty Buster. Version 3"
print"Written by Pooh the cat April 25th, 2014"
print""
print"Enter filename: ";
input filename$;
a=varptr(filename$)
bload filename$ a 6
c=a
FOR s = 1 to 6
a=peek(c)
if s = 4 then
GOSUB m:
partialblock=c&
endif
if s < 6 then
b=a
endif
c=c+1
NEXT s
GOSUB m:
totalsize&=c&*512
partialblock=512-partialblock
totalsize&=totalsize&-partialblock
print" "
print"Totalsize ";
print totalsize&;
print" bytes"
end
m:
c&=256*a
c&=c&+b
RETURN  
  
thats 1920 bytes. :)

If you're brilliant, whats this improvement make me?



--  
Take it easy... Don't let the sound of your own wheels drive you crazy.  
Lighten up while you still can. Don't even try to understand.  
Just find a place to make your stand and take it easy!


Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.


Quoted text here. Click to load it

The best I can do without you claiming I'm cheating by removing an ASIC  
command you don't need (close file) is 2096 bytes, otherwise, I can get it  
to 2064 bytes by removing close 1. I've provided several other posts  
showing you tighter and tigher ways of doing it, by changing little things  
in your demo. I've left your print statements as you wrote them.

Anyways, here's my 2096 byte program that copies your silly demo.

DIM A(5)
print"Dusty Buster. Version 3"
print"Written by Pooh the cat April 25th, 2014"
print""
print"Enter filename: ";
input filename$;
open"i",1,filename$
FOR s = 0 to 5
INPUT#1,B$ BYTE
a(s)=ASC(B$)
NEXT s
close 1

partialblock=256*A(3)
partialblock=partialblock+A(2)

blocks&=256*A(5)
blocks&=blocks&+A(4)

totalsize&=blocks&*512
partialblock=512-partialblock
totalsize&=totalsize&-partialblock

print" "
print"Totalsize ";
print totalsize&;
print" bytes"

end

and the 2064 byte version:

DIM A(5)
print"Dusty Buster. Version 3"
print"Written by Pooh the cat April 25th, 2014"
print""
print"Enter filename: ";
input filename$;
open"i",1,filename$
FOR s = 0 to 5
INPUT#1,B$ BYTE
a(s)=ASC(B$)
NEXT s

partialblock=256*A(3)
partialblock=partialblock+A(2)

blocks&=256*A(5)
blocks&=blocks&+A(4)

totalsize&=blocks&*512
partialblock=512-partialblock
totalsize&=totalsize&-partialblock

print" "
print"Totalsize ";
print totalsize&;
print" bytes"

end



--  
Take it easy... Don't let the sound of your own wheels drive you crazy.  
Lighten up while you still can. Don't even try to understand.  
Just find a place to make your stand and take it easy!


Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.


Quoted text here. Click to load it

Pooh Cat..... as your agent I wonder if you should charge Dustin for using  
your method.  

And don't forget that I keep 20%.     :)

--  
Jax

Re: Dustin fess up or you're fired. I asked for you to post tighter source than mine, and for it to be on my desk this morning. You have one hour.


Quoted text here. Click to load it

DIM A(5)
print"Dusty Buster. Version 3"
print"Written by Pooh the cat April 25th, 2014"
print""
print"Enter filename: ";
input filename$;
open"i",1,filename$
FOR partialblock = 0 to 5
INPUT#1,filename$ BYTE
a(partialblock)=ASC(filename$)
NEXT partialblock
close 1

partialblock=256*A(3)
partialblock=partialblock+A(2)

blocks&=256*A(5)
blocks&=blocks&+A(4)

totalsize&=blocks&*512
partialblock=512-partialblock
totalsize&=totalsize&-partialblock

print" "
print"Totalsize ";
print totalsize&;
print" bytes"

end

2000 bytes on the nose, you wasted resources that you didn't need to.  
Strings you didn't need, integers you didn't need. [g] And this one is  
using close 1.
  



--  
Take it easy... Don't let the sound of your own wheels drive you crazy.  
Lighten up while you still can. Don't even try to understand.  
Just find a place to make your stand and take it easy!


Site Timeline