Use the (cin) user input to paste it in std::system and run a command with the input in another terminal
int main();
{
string ip;
cout << "IP to scan: ";
cin >> ip;
std::system(" nmap .... ")
return 0;
}
so basicly I want the string ip to be used in an gnome ternimal so I can do for example and nmap scan of the ip that the user typed
Aucun commentaire:
Enregistrer un commentaire