求牛人告诉我metasploit源代码的入口点在哪?

Python012

求牛人告诉我metasploit源代码的入口点在哪?,第1张

在Msf3文件夹下的那几个ruby文件里.如果你使用时运行的是Msfconsole控制台界面,那入口点就是在Msfconsole文件.其它的依此类推.

你可在这个文件中的适当的位置加入print selfprint self.class这两个输出命令可知结果是

main和object.

puts "hello 是写在rb文件中的

eg

app/controllers/hello_controller.rb #画面的控制

class HelloController <ActionController

def index

@hello = "hello"

puts @hello # "hello"

end

end

app/views/hello/index.rhtml

<table border="1">

<tr>

<td><%=@hello%></td> #@hello 或者$hello 这种变量才能在页面中使用

</tr>

</table>

地址是:http://localhost:3000/hello/say

现在流行的做法是用RVM来管理Ruby的安装,搜一下ruby rvm就能找到。管理多个Ruby版本和项目时尤其好用,发行版的ruby大多都为了符合自己的策略修改了默认设置,用起来不习惯。