1 Hide url by C++ 5th November 2009, 4:15 pm
C0D3R
MITR Master
ဒါေလးကေတာ႔ ကိုယ္သြားခ်င္တဲ႔လိပ္စာနဲ႔ link ကိုျမဳပ္ထားတာပါ
ဥပမာ www dot google dot com လို႔ေပၚေနေပမယ္႔ သူရဲ႕ မူရင္း link ကိုၾကိဳက္သလိုျပင္ဖို႔ C++ နဲ႔ကလိထားတာပါ
source code
ဥပမာ www dot google dot com လို႔ေပၚေနေပမယ္႔ သူရဲ႕ မူရင္း link ကိုၾကိဳက္သလိုျပင္ဖို႔ C++ နဲ႔ကလိထားတာပါ
source code
#include <iostream>
using namespace std;
int main()
{
string
bad;
// malicious URL
string
hide;
// URL to show
cout << "Please enter the URL you would like to hide: " << endl;
getline (cin,
bad);
// Get bad URL
cout << "Please enter the URL you would like to display" << endl;
getline (cin,
hide); //
Get URL to show
cout << "==================================================================" << endl; // aesthetics
cout << "HTML = <a href=\"" << bad << "
\">" << hide << "</a>" <<
endl; // HTML
cout << "==================================================================" << endl; //aesthetics
cout << "BB code = [url="<< bad <<"]" <<
hide <<"[/url]" <<
endl; // BB code
cout << "==================================================================" << endl; // aesthetics
system ("pause");
}