Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上网功能 #12

Open
0x246933f6 opened this issue Jun 13, 2021 · 5 comments
Open

上网功能 #12

0x246933f6 opened this issue Jun 13, 2021 · 5 comments

Comments

@0x246933f6
Copy link

#include <iostream>
using namespace std;

void surf_internet(string uri) {
	string curl = "curl ";
	curl += uri;
	system(curl.c_str());
}

int main() {
	string uri;
	cin >> uri;
	surf_internet(uri);
	return 0;
}
@qiuhuiming
Copy link

太强了,短短几行代码就实现了

@HerainYang
Copy link

这就是梦弘开源社区吗

@jingyuexing
Copy link

绝了绝了,不愧是梦弘开源社区

@chengongpp
Copy link

这个实现允许用户自由输入访问地址,有任意代码执行漏洞,会被极少数不法分子和别有用心的境外势力利用,破坏正常的社会生产秩序,阻碍伟大复兴进程;上网的自由是相对的,绝对的上网自由只会对用户带来伤害,你还给用户任意输入的自由做什么?我都不敢想了。应取消cin >> uri,改为string uri = "http://www.baidu.com/",给用户安全可靠的网络浏览体验。

@cdn2021
Copy link

cdn2021 commented Jul 17, 2021

楼上那位说的不对,用百度这种毒瘤怎么能给用户可靠的网络浏览体验呢?建议换成string uri = "http://www.huawei.com.cn/";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants