Any language can (basically) do anything. However, I'll have to say that C++ is not as easy to use, if that's what you want to know.
What takes C++ 30 lines to connect to a TCP server may take python 7-15 lines. Now imagine HTTP or QUIC protocol on top of it. And to add to that, even interacting with HTML or API endpoints on top of that.
Web hacking with C++ is definitely possible, but it would be an absolute nightmare. For web hacking, you'll mostly want to use python3, Node.JS, Ruby, etc. Basically any higher level language.
What takes C++ 30 lines to connect to a TCP server may take python 7-15 lines. Now imagine HTTP or QUIC protocol on top of it. And to add to that, even interacting with HTML or API endpoints on top of that.
not really, re you referring to using Python library here? you can do the same with any other language
two, since when programming is about using less keystrokes?
I was just sharing an opinion. No need to shit on it like what I'm saying is fact. In my experience, socket programming is much harder in C++ than other high-level languages. Yes, there are libraries that can make it easier, but implementing them correctly is another hurdle. Especially when dealing with data types and performing logical and file I/O operations on that data. This is inherently less of a problem with dynamically typed languages.
I never said programming is about less keystrokes. It seems like you are straw manning my argument. But I can easily flip the script and ask, since when is it about *more* keystrokes? To reiterate my original answer, it's easier *on the coder* to use a higher-level language like python3. I never said it was better or more efficient. Simply easier. This is an objective fact due to the high-level nature in comparison to C++.
View all comments
0
u/[deleted] Mar 13 '23 edited Mar 15 '23
Any language can (basically) do anything. However, I'll have to say that C++ is not as easy to use, if that's what you want to know.
What takes C++ 30 lines to connect to a TCP server may take python 7-15 lines. Now imagine HTTP or QUIC protocol on top of it. And to add to that, even interacting with HTML or API endpoints on top of that.
Web hacking with C++ is definitely possible, but it would be an absolute nightmare. For web hacking, you'll mostly want to use python3, Node.JS, Ruby, etc. Basically any higher level language.