Sqlinjection attack in C language [closed] - c++

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I know sql-injection is a web based attack. but I want to know is it possible ? to write sql injection attack complete code in C language or I can take the code in C (from any open source web site). I would introduce some invariants in that code and then check my invariants work fine or not in that particular program.

I know sql-injection is a web based attack.
It is not. SQL injections can be done whenever user input gets included in SQL statements - this can be web based, but can also happen if you use the same input in an equally vulnerable desktop application communicating with a database. So yes, you could do that in C, or basically any programming language that can interact with a vulnerable software.

Related

How to run multiple simulations inside containers programmatically? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am developing a website that runs a simulation given a user-submitted script. I tried to follow some Online Judge architectures, but in my case, I need to send user input and receive the output in realtime, like a simulation.
I tried Kubernetes Jobs, but isn't seems so easy to communicate with the container, especially if I need a Kubernetes client on the language that I am working.
So, my question is: Given this scenario, what is the best approach to orchestrate multiple containers with interactive I/O programmatically?
*Obs.: I am not worrying about security yet.
Please take a look at the design of the spark operator:
https://github.com/GoogleCloudPlatform/spark-on-k8s-operator
That has a somewhat similar design to what you’re targeting. Similarly, Argo Workflow is another example:
https://github.com/argoproj/argo

Django: how to zip all html/css/js files? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm building my new website using the great Django framework and I would like to bundle all
js/css/html together for external design work.
Do you know any tool that might come up handy?
Or maybe there is another option for external designer to work on my project?
10x
The normal option is to use a revision control software which not only will let you share the needed code but also continuously integrate the changes without conflicts when one of the developers changes something. Of course compression of resources is automatically done by those software.
No serious developer, even alone, works without such a source control software.
There are online solutions if you can't set up a server, for example https://github.com/

Is C++ appropriate for my application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am developing a Windows desktop app, it allows users to create accounts and then login. Once logged in it allows them to interact with other users, and even has a chat box in a certain area. This app will eventually be ported over to android and ios(hopefully). Considering that it fetches quite a bit of information over the internet is C++ the most appropriate language to program it in?(i know quite a bit of c++, enough to make this) or should I use HTML5 or something else.
EDIT: For simplicity, essentially what I would like to know is. What is the EASIEST language to program an application in that will accept username/password and allow users to interact with one another. This program will also be accepting payments within it. I would like to use a language that is easily ported over to Android and IOS.
This is a question that doesn't really have a good answer. It's like asking what color you should paint the garden shed. There are many correct answers, and they are all subjective, and most likely based on the answerer's personal experiences.
If you have had experience with C++, then by all means go for it. C++ and it's related languages have the capability to create message windows and interact over the internet, so it is a good possibility for you.

What are my options for cross program communication? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
A while ago i made a database framework in c++ and have been using it in various places, even made a wrapper for it for vb.net.
Now i have a new project that would require multiple programs accessing a single database and it would be wasteful to load up the database multiple times for every one of them not to mention the syncing horrors.
So I figured i would turn the framework into a standalone application and access to the data would be done in some xx magical way from those other programs. From what I've seen php and mysql do something like this..?
Problem is, I have no clue where to start. The only kind of cross program communication i've done is one program reading and writing directly into the other ones memory, seems kinda hacky though and I'm not sure if that sort of thing is going to fly with managed languages (I want to make it accessible in vb.net too).
Tips?
The most portable way to do IPC (inter-process communication) is probably going to be Sockets.
What about D-Bus? There ist a port for Windows.

C++ MySQL database connection [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I not a DB expert, so am looking for advice for a web-based system I'm thinking of setting up.
The general set up of the system I have is that it will have a web-based interface (possibly in PHP) for logging in etc, and some C++ code running on the server doing some processing. Both the PHP and the C++ code will need read/write access to the MySQL DB.
So, (1) What is the best way to access/update a MySQL database with C++?
(2) Are there any issues/things I should be aware of with a DB that has concurrent access from both PHP and C++. I'm kinda assuming that the DB looks after all that...
Thanks,
Lehane
The DB should take care of concurrent access. You can consider using MySQL++ as a library to access mysql from C++ code. I only know of its existence, with no usage experience, so I cannot tell you about usability.