PATH by %20

\x7fELF
read x;printf ${x//:/\\n}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

Disassemble:


00000000 <.data>:
   0:	7f 45                	jg     0x47
   2:	4c                   	dec    %esp
   3:	46                   	inc    %esi
   4:	0a 72 65             	or     0x65(%edx),%dh
   7:	61                   	popa   
   8:	64 20 78 3b          	and    %bh,%fs:0x3b(%eax)
   c:	70 72                	jo     0x80
   e:	69 6e 74 66 20 24 7b 	imul   $0x7b242066,0x74(%esi),%ebp
  15:	78 2f                	js     0x46
  17:	2f                   	das    
  18:	3a 2f                	cmp    (%edi),%ch
  1a:	5c                   	pop    %esp
  1b:	5c                   	pop    %esp
  1c:	6e                   	outsb  %ds:(%esi),(%dx)
  1d:	7d                   	.byte 0x7d

download

return to the top page