Best Python code snippet using fMBT_python
IPHM_Attack_Process_Killerv2.py
Source:IPHM_Attack_Process_Killerv2.py
1# -*- coding: utf-8 -*-2import subprocess, time3def killer(cmd):4 subprocess.call(cmd, shell=True)5orange = "\x1b[38;5;202m"6pink = "\x1b[38;5;201m"7purple = "\x1b[38;5;93m"8# v19killer("pkill ldap; pkill ntp; pkill tftp; pkill ssdp; pkill portmap; pkill chargen; pkill netbios; pkill sentinel; pkill mssql; pkill ts3")10killer("pkill HUN-FUN; pkill ASS-CRK; pkill EFT-PWR; pkill PMP-PMP; pkill VEX-VAIN")11killer("pkill tcpabuse; pkill udpabuse; pkill dominate; pkill winsyn; pkill winseqid; pkill yubina; pkill prowin; pkill essyn; pkill csyn; pkill xsyn; pkill zsyn; pkill issyn; pkill nfobypass; pkill CF_Bypass; pkill ovhbypass; pkill bo4bypass")12# v213killer("pkill dns; pkill snmp; pkill db2; pkill echo; pkill mdns; pkill memcache; pkill rip; pkill reaper; pkill heartbeat; pkill arc")14killer("pkill zap; pkill wizard; pkill bogus; pkill bogus; pkill rawudp; pkill udp_vse1; pkill udp_vse2; pkill grenade; pkill xanax; pkill frag; pkill arme; pkill omega")15killer("pkill tcp-psh; pkill tcp-rst; pkill tcp-fin; pkill tcp-xmas; pkill tcp-ack; pkill ejunk")16print(""+ pink +"âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ")17print(""+ pink +"â "+ orange +"Killed all processes "+ pink +"ââ "+ orange +"vse "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" dns "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"Tartarus"+ pink +"â")18print(""+ pink +"â ââââââââââââââââââââââââ£â "+ orange +"telnet "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"snmp "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"IPHM/Amplification "+ pink +"â")19print(""+ pink +"â "+ orange +"ldap "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" tcpabuse "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"db2 "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"Process Killerv2 "+ pink +"â")20print(""+ pink +"â "+ orange +"ntp "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" udpabuse "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"echo "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +" Developer"+ pink +": "+ purple +"Vex "+ pink +"â")21print(""+ pink +"â "+ orange +"tftp "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" dominate "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"mdns "+ pink +"{"+ purple +"IPHM"+ pink +"} âââââââââââââââââââââââ")22print(""+ pink +"â "+ orange +"ssdp "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" winsyn "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"memcache "+ pink +"{"+ purple +"IPHM"+ pink +"} â")23print(""+ pink +"â "+ orange +"portmap "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" winseqid "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"rip "+ pink +"{"+ purple +"IPHM"+ pink +"} â")24print(""+ pink +"â "+ orange +"chargen "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" yubina "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"reaper "+ pink +"{"+ purple +"IPHM"+ pink +"} â")25print(""+ pink +"â "+ orange +"sentinel "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" prowin "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"heartbeat "+ pink +"{"+ purple +"IPHM"+ pink +"} âââââââââââââââââââââââ")26print(""+ pink +"â "+ orange +"netbios "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" essyn "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"tartarus "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"frag "+ pink +"{"+ purple +"IPHM"+ pink +"} â")27print(""+ pink +"â "+ orange +"mssql "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" csyn "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"zap "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"arme "+ pink +"{"+ purple +"IPHM"+ pink +"} â")28print(""+ pink +"â "+ orange +"ts3 "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" xsyn "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"wizard "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"omega "+ pink +"{"+ purple +"IPHM"+ pink +"} â")29print(""+ pink +"â "+ orange +"HUN-FUN "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" zsyn "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"bogus "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"tcp-psh "+ pink +"{"+ purple +"IPHM"+ pink +"} â")30print(""+ pink +"â "+ orange +"ASS-CRK "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" issyn "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"rawudp "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"tcp-rst "+ pink +"{"+ purple +"IPHM"+ pink +"} â")31print(""+ pink +"â "+ orange +"EFT-PWR "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" ovhbypass "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"udp_vse2 "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"tcp-fin "+ pink +"{"+ purple +"IPHM"+ pink +"} â")32print(""+ pink +"â "+ orange +"PMP-PMP "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" cfbypass "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"udp_vse1 "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"tcp-xmas "+ pink +"{"+ purple +"IPHM"+ pink +"} â")33print(""+ pink +"â "+ orange +"VEX-VAIN "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ"+ orange +" nfobypass "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"grenade "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"tcp-ack "+ pink +"{"+ purple +"IPHM"+ pink +"} â")34print(""+ pink +"â "+ orange +"Gang <3 "+ pink +"ââ "+ orange +"bo4bypass "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"xanax "+ pink +"{"+ purple +"IPHM"+ pink +"} ââ "+ orange +"ejunk "+ pink +"{"+ purple +"IPHM"+ pink +"} â")35print(""+ pink +"âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ")36# Normal Menu < No Color Codes37#âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ38#â Killed all processes ââ vse {IPHM} ââ dns {IPHM} ââ Tartarus â39#â ââââââââââââââââââââââââ£â telnet {IPHM} ââ snmp {IPHM} ââ IPHM/Amplification â40#â ldap {IPHM} ââ tcpabuse {IPHM} ââ db2 {IPHM} ââ Process Killerv2 â41#â ntp {IPHM} ââ udpabuse {IPHM} ââ echo {IPHM} ââ Developer: Vex â42#â tftp {IPHM ââ dominate {IPHM} ââ mdns {IPHM} âââââââââââââââââââââââ43#â ssdp {IPHM ââ winsyn {IPHM} ââ memcache {IPHM} â44#â portmap {IPHM} ââ winseqid {IPHM} ââ rip {IPHM} â45#â chargen {IPHM} ââ yubina {IPHM} ââ reaper {IPHM} âââââââââââââââââââââââ46#â sentinel {IPHM} ââ prowin {IPHM} ââ heartbeat {IPHM} ââ xanax {IPHM} â47#â netbios {IPHM} ââ essyn {IPHM} ââ grenade {IPHM} ââ frag {IPHM} â48#â mssql {IPHM} ââ csyn {IPHM} ââ zap {IPHM} ââ arme {IPHM} â49#â ts3 {IPHM} ââ xsyn {IPHM} ââ wizard {IPHM} ââ omega {IPHM} â50#â HUN-FUN {IPHM} ââ zsyn {IPHM} ââ bogus {IPHM} ââ tcp-psh {IPHM} â51#â ASS-CRK {IPHM} ââ issyn {IPHM} ââ rawudp {IPHM} ââ tcp-rst {IPHM} â52#â EFT-PWR {IPHM} ââ ovhbypass {IPHM} ââ udp_vse2 {IPHM} ââ tcp-fin {IPHM} â53#â PMP-PMP {IPHM} ââ cfbypass {IPHM} ââ udp_vse1 {IPHM} ââ tcp-xmas {IPHM} â54#â VEX-VAIN {IPHM} ââ nfobypass {IPHM} ââ grenade {IPHM} ââ tcp-ack {IPHM} â55#â :) <3 ââ bo4bypass {IPHM} ââ zap {IPHM} ââ ejunk {IPHM} â...
IPHM_Attack_Process_Killer.py
Source:IPHM_Attack_Process_Killer.py
1# -*- coding: utf-8 -*-2import subprocess, time3def killer(cmd):4 subprocess.call(cmd, shell=True)5orange = "\x1b[38;5;202m"6pink = "\x1b[38;5;201m"7purple = "\x1b[38;5;93m"8killer("pkill ldap; pkill ntp; pkill tftp; pkill ssdp; pkill portmap; pkill chargen; pkill netbios; pkill sentinel; pkill mssql; pkill ts3")9killer("pkill HUN-FUN; pkill ASS-CRK; pkill EFT-PWR; pkill PMP-PMP; pkill VEX-VAIN")10killer("pkill tcpabuse; pkill udpabuse; pkill dominate; pkill winsyn; pkill winseqid; pkill yubina; pkill prowin; pkill essyn; pkill csyn; pkill xsyn; pkill zsyn; pkill issyn; pkill nfobypass; pkill CF_Bypass; pkill ovhbypass; pkill bo4bypass")11print(""+ pink +"âââââââââââââââââââââââââââââââââââââââââââââââ ââââââââââââââââââ")12print(""+ pink +"â "+ orange +"Killed all processes "+ pink +" ââ"+ orange +" vse "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â â"+ orange +" Arceus I "+ pink +"â")13print(""+ pink +"â ââââââââââââââââââââââââ£â"+ orange +" telnet "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â â"+ orange +" Process Killer "+ pink +"â")14print(""+ pink +"â "+ orange +"ldap "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" tcpabuse "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â â"+ orange +" Developer"+ pink +":"+ purple +" Vex "+ pink +"â")15print(""+ pink +"â "+ orange +"ntp "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" udpabuse "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â ââââââââââââââââââ")16print(""+ pink +"â "+ orange +"tftp "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" dominate "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")17print(""+ pink +"â "+ orange +"ssdp "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" winsyn "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")18print(""+ pink +"â "+ orange +"portmap "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" winseqid "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")19print(""+ pink +"â "+ orange +"chargen "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" yubina "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")20print(""+ pink +"â "+ orange +"sentinel "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" prowin "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")21print(""+ pink +"â "+ orange +"netbios "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" essyn "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")22print(""+ pink +"â "+ orange +"mssql "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" csyn "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")23print(""+ pink +"â "+ orange +"ts3 "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" xsyn "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")24print(""+ pink +"â "+ orange +"HUN-FUN "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" zsyn "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")25print(""+ pink +"â "+ orange +"ASS-CRK "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" issyn "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")26print(""+ pink +"â "+ orange +"EFT-PWR "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" ovhbypass "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")27print(""+ pink +"â "+ orange +"PMP-PMP "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" cfbypass "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")28print(""+ pink +"â "+ orange +"VEX-VAIN "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"ââ"+ orange +" nfobypass "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")29print(""+ pink +"â "+ orange +"Gang <3 "+ pink +"ââ"+ orange +" bo4bypass "+ pink +"{"+ purple +"IPHM"+ pink +"} "+ pink +"â")30print(""+ pink +"âââââââââââââââââââââââââââââââââââââââââââââââ")31# Normal Menu < No Color Codes32#âââââââââââââââââââââââââââââââââââââââââââââââ ââââââââââââââââââââ33#â Killed all processes ââ vse {IPHM} â â Tartarus â34#â ââââââââââââââââââââââââ£â telnet {IPHM} â â IPHM_Attack â35#â ldap {IPHM} ââ tcpabuse {IPHM} â â Process_Killer â36#â ntp {IPHM} ââ udpabuse {IPHM} â â Developer: Vex â 37#â tftp {IPHM ââ dominate {IPHM} â ââââââââââââââââââââ38#â ssdp {IPHM ââ winsyn {IPHM} â39#â portmap {IPHM} ââ winseqid {IPHM} â40#â chargen {IPHM} ââ yubina {IPHM} â41#â sentinel {IPHM} ââ prowin {IPHM} â42#â netbios {IPHM} ââ essyn {IPHM} â43#â mssql {IPHM} ââ csyn {IPHM} â44#â ts3 {IPHM} ââ xsyn {IPHM} â45#â HUN-FUN {IPHM} ââ zsyn {IPHM} â46#â ASS-CRK {IPHM} ââ issyn {IPHM} â47#â EFT-PWR {IPHM} ââ ovhbypass {IPHM} â48#â PMP-PMP {IPHM} ââ cfbypass {IPHM} â49#â VEX-VAIN {IPHM} ââ nfobypass {IPHM} â50#â Gang <3 ââ bo4bypass {IPHM} â...
selectLang.py
Source:selectLang.py
1from pad4pi import rpi_gpio2import subprocess3import os4import sys5#os.system("sudo python3 ~/master/master.py en")6KEYPAD = [7 [1, 2, 3],8 [4, 5, 6],9 [7, 8, 9],10 ["*", 0, "#"],11 ["*","*","*"],12 ["#","#","#"]13]14ROW_PINS = [4, 14, 15, 17,5,6] # BCM numbering15COL_PINS = [18, 27, 22] # BCM numbering16factory = rpi_gpio.KeypadFactory()17keypad = factory.create_keypad(keypad=KEYPAD, row_pins=ROW_PINS, col_pins=COL_PINS)18os.system('sudo pkill -f master')19os.system('sudo pkill -f mpg123')20os.system('sudo pkill -f mpg321')21os.system('sudo pkill -f omxplayer')22os.system('sudo pkill -f aplay')23playString = 'mpg321 /home/pi/master/clips/introChord.mp3'24os.system(playString)25playString = 'omxplayer ~/master/clips/langSelection.mp3'26recordProcess = subprocess.Popen(playString,shell=True)27def fx():28 playString = 'mpg321 /home/pi/master/clips/buttonSounds/6.mp3'29 os.system(playString)30def printKey(key):31 32 print(key)33 if(key == 1):34 fx()35 os.system('pkill aplay')36 os.system('pkill omxplayer')37 print("english")38 39 myProcess = subprocess.Popen("sudo python3 /home/pi/master/master.py en && sudo pkill -f select", shell=True)40 os.system("sudo pkill -f select")41 42 if(key == 2):43 fx()44 os.system('pkill aplay')45 os.system('pkill omxplayer')46 print("greek")47 myProcess = subprocess.Popen("sudo python3 /home/pi/master/master.py el && sudo pkill -f select", shell=True)48 os.system("sudo pkill -f select")49 if(key == 3):50 fx()51 os.system('pkill aplay')52 print("french")53 myProcess = subprocess.Popen("sudo python3 /home/pi/master/master.py fr && sudo pkill -f select", shell=True)54 os.system("sudo pkill -f select")55# printKey will be called each time a keypad button is pressed56keypad.registerKeyPressHandler(printKey) 57while True:...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!