网站在线运行代码

2015-06-04 22:58:19 +08:00
 hellomsg

http://zh.scala-tour.com/ 这样的网站,他们的代码直接在服务器上运行然后返还结果吗?还是在什么沙箱或虚拟机里运行。

如果在服务器上运行,是不是我在他的代码框里执行以下代码就可以把它的进程给杀了。。。
val rt:Runtime = Runtime.getRuntime();
val p:Process = rt.exec("kill n");

11605 次点击
所在节点    Java
108 条回复
Livid
2015-06-04 23:05:05 +08:00
那你就在框里尝试一下各种可能性就知道了。
oisc
2015-06-04 23:06:34 +08:00
楼主你做了什么。。。。。 网站进不去了。。。。
lujiajing1126
2015-06-04 23:07:47 +08:00
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

LZ你干了什么。。。
hellomsg
2015-06-04 23:10:16 +08:00
谁知道真这样
hellomsg
2015-06-04 23:10:51 +08:00
@Livid
你让我屎的。。。
isaced
2015-06-04 23:11:11 +08:00
真的吗?
hellomsg
2015-06-04 23:11:57 +08:00
@lujiajing1126
@oisc
这下完了,咋办
Livid
2015-06-04 23:13:10 +08:00
@hellomsg ……你可以写信告诉他们这个漏洞……
zrp1994
2015-06-04 23:13:16 +08:00
楼主好样的
lujiajing1126
2015-06-04 23:14:53 +08:00
@hellomsg 查下域名是谁的。。然后写个Email。。。
oisc
2015-06-04 23:15:10 +08:00
@hellomsg 细软跑吧 ~~~~ 或者报告漏洞说不定还有奖励
x4
2015-06-04 23:15:25 +08:00
楼主怎么可以这样。。。。
ezreal
2015-06-04 23:15:37 +08:00
docker
hellomsg
2015-06-04 23:17:55 +08:00
@ezreal
mytharcher
2015-06-04 23:19:35 +08:00
是 heroku 上的,估计是没有捕获异常,然后 app 进程就挂了。
hellomsg
2015-06-04 23:21:17 +08:00
一失足成千古恨,怎么办,蹲监狱吗
razrlele
2015-06-04 23:27:34 +08:00
简直6
xiaozi
2015-06-04 23:30:42 +08:00
docker 做沙箱,http://tool.lu/coderunner/ 欢迎测试
vjnjc
2015-06-04 23:46:45 +08:00
现在能进了啊,我还贴了楼主的代码然而没有什么鸟用
hellomsg
2015-06-04 23:49:46 +08:00
@vjnjc 看来我自作了,哈哈

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/196195

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX