Deobfuscating obfuscated code for fun and no profit

Part 1: The simple stuff

int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
int i;main(){
for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hello, world!\n",'/'/'/'));
}
read(j,i,p){
write(j/p+p,i---j,i/i);
}
read(j,i,p){
write(j/p+p,i---j,i/i);
}
read(i){
write(1,i--,1);
}

Part 2: The Tricky Stuff

int i;main(){
for(;i["]<i;++i){--i;}"];read(i+++"hello, world!\n"));
}
read(i){
write(1,i,1);
}
hm…so read is called with an int of..4195892!?! How does that get us ‘h’??
What do these numbers mean??

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store