The Nightstar Zoo

Nightstar IRC Network - irc.nightstar.net
It is currently Tue May 30, 2017 12:42 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Mar 25, 2003 2:35 pm 
It's a small C program...try to guess what it does and then try to run it. What happens?






#include <stdio.h>
main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13?
main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\
;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
}'+}##(!!/")
:t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1)
:0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a,
"!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}


Top
  
 
 Post subject:
PostPosted: Tue Mar 25, 2003 2:40 pm 
Offline
Energizer Bunny
User avatar

Joined: Wed May 22, 2002 12:24 am
Posts: 1634
It appears to harf all over your post, is what it appears to do.

Vorn


Top
 Profile  
 
PostPosted: Wed Mar 26, 2003 1:37 am 
It displays junk, but I'm too tired too figure out what right now. It extracts charachters from the big long string that includes most of the program and putchrs them. It takes two inputs which somehow decide what it spits out, but I've never seen an underscore in an argument list like that. I'm not convinced it's valid ANSI C. In the event that it is not the program does nothing except give compiler errors.


Top
  
 
 Post subject:
PostPosted: Wed Mar 26, 2003 1:31 pm 
Offline
Vorpal Bunny Slipper
Vorpal Bunny Slipper

Joined: Sun May 12, 2002 2:54 am
Posts: 2707
HAHAHAHAHAHAHAHA that rules :D

(I ran it, by the way. Now that I know what it does, I just need to find out how it does it.)

_________________
Scharr, scharr, verscharr das Gebein, grab es tief unten im Keller ein.
Später dann graben es andere aus, und nennen dein Haus das Knochenhaus.
Scharr, scharr, verscharr das Gebein, leg auch ihre weißen Schädel hinein.
Mit Beton gießt du es aus, das Fundament vom Knochenhaus.
Scharr, scharr, verscharr das Gebein, da ist noch Platz, da paßt noch wer rein.
Hier tobte sich der Teufel aus, unten im Keller im Knochenhaus.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2003 1:38 pm 
Offline
Vorpal Bunny Slipper
Vorpal Bunny Slipper

Joined: Sun May 12, 2002 2:54 am
Posts: 2707
<JeremiahSmith> Hi.
<JeremiahSmith> Heh... anyone see that C code kreely posted in One Hath Ritz Togs in the zoo?
<Vermilion> Not I... <g>
<JeremiahSmith> It's obfuscated... I cheated and ran it.
<JeremiahSmith> 'Tis spiffy.
<MSminion> I'm gonna post a virus in obfuscated code next. Catch all those cheaters.

_________________
Scharr, scharr, verscharr das Gebein, grab es tief unten im Keller ein.
Später dann graben es andere aus, und nennen dein Haus das Knochenhaus.
Scharr, scharr, verscharr das Gebein, leg auch ihre weißen Schädel hinein.
Mit Beton gießt du es aus, das Fundament vom Knochenhaus.
Scharr, scharr, verscharr das Gebein, da ist noch Platz, da paßt noch wer rein.
Hier tobte sich der Teufel aus, unten im Keller im Knochenhaus.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 27, 2003 12:24 am 
A fork bomb would also be quite effective against cheaters. ;)

Also, this program is several levels of evil. pointer arithmetic, recursions within recursions.... The requirement of an operator precedence chart just to grok it...


Top
  
 
PostPosted: Tue Aug 26, 2003 8:48 pm 
kreely wrote:
It's a small C program...try to guess what it does and then try to run it. What happens?


I guessed that it wouldn't do anything.

I doubleclicked on it to attempt to run it, and it didn't do anything.

I win!

(Ignorance truly is bliss)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group