How to use pkill method in fMBT

Best Python code snippet using fMBT_python

IPHM_Attack_Process_Killerv2.py

Source:IPHM_Attack_Process_Killerv2.py Github

copy

Full Screen

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} ║...

Full Screen

Full Screen

IPHM_Attack_Process_Killer.py

Source:IPHM_Attack_Process_Killer.py Github

copy

Full Screen

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} ║...

Full Screen

Full Screen

selectLang.py

Source:selectLang.py Github

copy

Full Screen

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:...

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fMBT automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful