Chatsubo [(in)Security Dark] Labs

"... A consensual hallucination experienced daily by billions of legitimate operators, in every nation, by children being taught mathematical concepts... A graphic representation of data abstracted from banks of every computer in the human system. Unthinkable complexity. Lines of light ranged in the nonspace of the mind, clusters and constellations of data. Like city lights, receding into the distance... "
--
William Gibson.

miércoles, 27 de agosto de 2014

(In)secure, funny and peculiar C code posted on Twitter

No, this is not a post about how secure or insecure is Twitter’s code itself. It’s about code posted on Twitter by ordinary people, coders, ninjas, aliens, etc.
As you might know, the directive #include is used to tell the C pre-processor to include certain portions of code, data structures, data type definitions, etc. within your C program. On the other hand, a hashtag is a word or an unspaced phrase prefixed with the sign # to group messages, tweets, posts, pictures, etc. referring to a specific topic. Therefore, in the cyberspace, specifically social networks, #include is not a directive, it’s just another hashtag.

Having said that, last night I had insomnia and I spent a while looking for #include on Twitter wondering if I would find some interesting C code. Well, in less than two seconds, my screen was full of tweets by people expressing the thrill they felt after writing their first “Hello World”s and other peculiarities in C programming language. You'll notice that most of them were written by Asian people, why? Have no idea.

Have phun:

Following some tweets with c0d3 that caught my attention:

Who said Buffer Overflow? ;-D
https://twitter.com/ryuujinzoku/status/503963506920923136



I can prove that I can allocate and free memory as fast as Chuck Norris pulls the trigger: 
https://twitter.com/hukushu_ramen/status/503915580483579906
 
The devil in on Twitter }:-) 
https://twitter.com/YVT/status/503474782789050368
 
ñ_ñ she likes strcpy():
https://twitter.com/madoka_rinu/status/473022963059421185

This is not code, but I'm pretty sure that that Warning: was because of the percent signs in the text, 10% and 5%, and evidently, sprintf() was expecting two vars for those "format strings":
https://twitter.com/iPhoneplaneta/status/378329901079621632


And some others who know about the weaknesses of those functions just have phun with them... Like the butt overflow by @jduck:


Or this sushi emoji overflow that will not compile ($stomach, confused with PHP, lame) by me:
https://twitter.com/nitr0usmx/status/488749060841414657


Irony:
https://twitter.com/madiemmie/status/460259495625515008
 

I delete the screensh0tz in my Desktop with C cuz I can:
https://twitter.com/Wp120_3238/status/503929231143759872


I want some of diz peculiar dinner that will never compile (? printf(" );?):
https://twitter.com/LunarChanyeol/status/504160998614241280


Accompanied with a big cold beer.h:
https://twitter.com/Chris_Gammell/status/65926440037785600

VX writers everywhere:
https://twitter.com/ObeyRana/status/490863552769830912

 One about girlfriends and $$$:


Such a smart guy !
https://twitter.com/optshiftk/status/480769923770118149



Some help needed:
https://twitter.com/ZhareefAimullah/status/407925173849833472



Someone was sleeping in class zZzzZzzZzZ:
https://twitter.com/jeymileyyy/status/502079076023017473


And the last one, a funny one in Spanish but basically it is a 
printf("They jerk me off .!.");


After this, I think it'd be a cool idea to create a Twitter bot to grab C code from #include (hashtag), pass it through Flawfinder (http://www.dwheeler.com/flawfinder/) and tweet the output back.


Happy c0ding + Social Nets ! B-)
@nitr0usmx

5 comentarios:

  1. The post you are written wonderfully and I appreciating you for sharing a great information to readers. I will try to share this article to my friends too. You can use this essay writing service for any future help.

    ResponderEliminar
  2. Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have chaussures nike kaishi run en solde

    ResponderEliminar
  3. The gorgeous post learned a great deal baskets saucony pas chere Thanks greatly!

    ResponderEliminar
  4. the way you work, it must a motivation for lots of people, thank a lot for that good Nike Løbesko Mænd check it here

    ResponderEliminar
  5. It's so easy to reach happiness check url Joggesko Nike Billig . You just don't need to complicate your own life.

    ResponderEliminar