You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return "The Remote Module-module allows RoboCop to load Python modules from the internet. Usage: @rmodule <http://example.com/linktomodule.py>";
else:
url = str(inp);
data = urllib2.Request(url, None, {'User-Agent':'Mosilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11'})
try:
urlfile = urllib2.urlopen(data)
except urllib2.HTTPError:
return "That module could not be loaded, the server is not responding."
module = urlfile.read()
store(module)
return "Module has been loaded. You may need to restart RoboCop to take effect."