Myanmar IT Resource Forum
Myanmar IT Resource Forum
Myanmar IT Resource Forum

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Hide url by C++ Empty Hide url by C++ 5th November 2009, 4:15 pm

C0D3R

C0D3R
MITR Master



MITR Master
ဒါေလးကေတာ႔ ကိုယ္သြားခ်င္တဲ႔လိပ္စာနဲ႔ link ကိုျမဳပ္ထားတာပါ

ဥပမာ 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");
}

http://www.myanmaritresource.info

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum

 

Free forum | ©phpBB | Free forum support | Report an abuse | Cookies | Forumotion.com