Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #----------------------------------------------------------
- #The script starts in non-interactive mode (aka bot mode).
- #Press ctrl-c to get into interactive mode and 'ctrl ^]' to
- #get back into non-interactive mode.
- #
- #And now a few comments...
- #
- #a)The script only works on the Linux Operating System.
- # This is because the program relies on the concept of a
- # "pseudo terminal". As far as I know, the closest you
- # can get to a "pseudo terminal" in Windows is using something
- # like cygwin.
- #
- #b)Using something like 'ctrl ^]' to get back into non-interactive
- # mode is something that is mentioned python pexpect module,
- # but not in the actual pexpect document itself.
- #
- #---------------------------------------------------------
- import pexpect, time, signal, getpass
- #I need a large list of profanity because the computer doesn't always
- #follow the Gaussian Probability curve.
- profanity = ["mart is a fag", "mart is a homo", "mart is dumb",
- "mart is a retard", "mart is a moron", "mart is stupid",
- "mart is a virgin", "mart is gay", "mart isnt witty",
- "mart sucks dans dick", "mart sucks his moms dick",
- "mart can go fuck off", "mart likes little boys",
- "mart isnt bright", "mart is a homosexual",
- "mart takes it up the ass from cross", "mart can go fuck off"]
- x = 1
- def mode(sig, data):
- global x
- x = x + 1
- def get_name():
- user = raw_input("Username: ")
- password = getpass.getpass("Password: ")
- idle(user,password)
- def idle(user,password):
- y = 1
- max = len(profanity)
- count = 0
- bbs = pexpect.spawn('telnet arbornet.org')
- bbs.expect('login:')
- bbs.sendline(user)
- print bbs.before,bbs.after,
- bbs.expect('[Pp]assword:')
- bbs.sendline(password)
- bbs.sendline('\n')
- bbs.sendline('bbs')
- while bbs.isalive():
- if ((y % x ) == 0):
- bbs.expect('Ok: ')
- bbs.sendline('r noresp 125')
- bbs.expect('Respond or pass?')
- bbs.sendline('r')
- bbs.expect('>')
- if count < max:
- bbs.sendline(profanity[count])
- count = count + 1
- else:
- count = 0
- bbs.sendline('mart is a queer ass virgin')
- bbs.sendline('.')
- time.sleep(5)
- else:
- bbs.interact()
- y = y + 1
- if __name__ == "__main__":
- signal.signal(signal.SIGINT, mode)
- get_name()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement