4

Have you ever written a very complicated code to look like a professional programmer??

For example:hello world app in c++

#include <iostream>
using namespace std;

int main(int argv, char argc)
{
char vhWnd[] = new char[13];

struct dataentry
{
string txt;
float vex = 0.2345234;
};

vhWnd[1] = 'e';
vhWnd[4] = 'o';
vhWnd[3] = 'l';
vhWnd[2] = 'l';
vhWnd[7] = 'o';
vhWnd[5] = ' ';
vhWnd[6] = 'W';
vhWnd[9] = 'l';
vhWnd[8] = 'r';
vhWnd[13] = '\0';
vhWnd[10] = 'd';
vhWnd[12] = '!';
vhWnd[11] = ' ';
vhWnd[0] = 'H';

for ( int i = 0, i=13, i++)
{
nhttp << vhWnd[i];
}

return 85037593;
}

Comments
  • 4
    I've mentioned this before, but...

    Anytime I need to store things client side I json.stringify them and then run them through compression.

    The result is that if somebody peeks at my network tab in dev tools all they see is random symbols.

    And yeah... they could just figure out what compression algo I used and decompress it... but good luck with that because I packed the compression algo into the minified jquery file in an override to the addslashes function so you'll fucking never find it. Mwah haha haha

    This isn't a "hack" per se... but it's tricky and unexpected enough I have now fucked up several devs and pen testers with it.
  • 3
    @frogstair Not only that, it won't even print anything, even if it compiled.
  • 1
    If this compiled properly, I'm gonna eat a broomstick.
  • 6
    @HiFiWiFiSciFi security by obfuscation is not security.
    Your pen testers suck.
  • 4
    @HiFiWiFiSciFi If your app is hackable merely by inspecting the requests made, you need to seriously redesign everything.
  • 0
    the one who write this code is not a professional, he only try to look so
  • 3
    @HiFiWiFiSciFi "the minified jquery file" Uhm... it's 2021 already.
  • 6
    @Allen-Edward The thing is, this code makes him look like a noob, and if he thinks it makes him look professional, he's even a bloody noob.
  • 2
    Um yeah guys... I didn’t say this was a security measure... just an obfuscation to fuck with people...

    That I only mentioned in the context of writing overly complex code for simple tasks... like this thread is about.
  • 1
  • 3
    The only time I’ve ever written obfuscated code like this is when I wrote malware.
  • 1
    @HiFiWiFiSciFi Yo... Umm... I don't know if you know this yet but here you go.

    http://jsnice.org/
  • 0
    @Root Sounds like you have played big games :P
  • 0
    @Root you did...what?
  • 0
    professional as in ? like writing maintainable code with good naming conventions or just writing some code very quickly which would get job done ???
  • 1
    @k33da just writing trash code but thinking that it is professional code. because it "LOOK" complicated

    real professional code is as you said before in the first one.
  • 0
    @Fast-Nop Hey, maybe this nhttp stream will send things over the network or something, assuming this isn't the whole file and that variable is declared/defined elsewhere :D
  • 0
    @Fast-Nop If you want to leave jQuery off your resume even though it’s powering 60% of front ends, I encourage you to do so.

    More work for me, and not every project is building a new fancy fun thing. Many of them will be “add x feature to this 10 year old codebase”.

    And that... will be jQuery and PHP.
  • 0
    @HiFiWiFiSciFi The opportunity for the first jQuery hate in 2021 was just too good to let it pass.

    I personally removed the jQuery dependency from the last widget on my project site already years ago. Replacing that by using native JS functionality was pretty straightforward.
Add Comment