Exemplo n.º 1
0
    def atom(self, host):
        import asp
        import java
        import php
        import python
        import ruby
        import perl
        import urllib
        from core.urli import sansor

        host = sansor().fransor(host)
        hostp = sansor().pransor(host)
        if sansor().cransor(hostp):

            content = urllib.urlopen(host).read()
            header = urllib.urlopen(host).headers
            final = []
            asp = asp.Asp().run(content, header)
            jva = java.Java().run(content, header)
            php = php.Php().run(content, header)
            prl = perl.Perl().run(content, header)
            pyt = python.Python().run(content, header)
            rby = ruby.Ruby().run(content, header)

            eve = [asp, jva, php, prl, pyt, rby]
            for key in eve:
                if key:
                    final.append(key)
            if final == []:
                final.append('none')
            return final
        else:
            return None
Exemplo n.º 2
0
def Lang(content,headers):
	return (
		asp.Asp().run(content,headers),
		java.Java().run(content,headers),
		php.Php().run(content,headers),
		perl.Perl().run(content,headers),
		python.Python().run(content,headers),
		ruby.Ruby().run(content,headers)
		)
Exemplo n.º 3
0
 def __init__(self, config):
     self.config = config
     self.mongo = mongo.MongoDB(self.config)
     self.node = node.Node(self.config)
     self.repoCloner = repositoryInstaller.RepositoryInstaller(self.config)
     self.ruby = ruby.Ruby(self.config)