Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Created by Pathogen @ www.hakhub.tk
- import sys,re
- import sshmon
- import subprocess as sp
- cmd = sp.Popen("cat /proc/version",stdout = sp.PIPE,shell=True)
- plat = cmd.stdout.read()
- if re.search("ubuntu",str(plat)):
- platform = "Ubuntu"
- elif re.search("Red Hat",str(plat)):
- platform = "Red Hat"
- module = raw_input("Enter the log to parse -> ")
- if module == "ssh":
- if platform == "Red Hat":
- sshmon.RHL()
- elif platform == "Ubuntu":
- sshmon.ubuntu()
- elif module == "":
- print "No module chosen."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement