def takePhoto(shutter, iso, delay): try: os.system("gphoto2 --set-config shutterspeed=bulb") os.system("gphoto2 --set-config=/main/imgsettings/iso=" + str(iso)) os.sysytem('gphoto2 --set-config eosremoterelease=Immediate --wait-event=' + str(shutter) + 's --set-config eosremoterelease="Release Full"') time.sleep(delay) return True
def main(): os.system("clear") os.system("cat install/distros/banner.txt") option = input("\nContinue?(y/n) --> ") #Accept if option == "y": os.system("clear") print("Installing!") os.system("yum install -y aircrack-ng") # Install Aircrack! os.system("yum install -y dhcp") # Install DHCP server! os.system("yum install -y dnsmasq") # Install DNS server! os.sysytem("yum install -y dsniff") # Install Dsniff! os.system("clear") print("Everything is installed!") time.sleep(1) os.system("python main.py") elif option == "n": # Go back! os.system("clear") print("Back to menu") time.sleep(1) os.system("clear") os.system("python main.py") else: os.system("clear") print("Yes(y) or No(n).") time.sleep(1) main()
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import sys import os import time os.system ("cd /piapple-souce") # Change to dir of the program file if you are using a diffrent install dir. os.system ("sudo airmon-ng start wlan0") os.system ("sudo ifconfig at0 up") # Change to or wireless adapter of choise e.g mon0 if you are using the aircrack-ng suite. print "Monitor interface started." print "mon0 started" time.sleep(3) os.system ("sudo sh dhcp-start.sh") # Remove this line if you do not want to use a dhcp server with this program. os.system ("sudo ifconfig ath0 up") time.sleep(3) os.sysytem ("sudo python /piapple-souce/probrouter.py") time.sleep(5)
os.system('clear') print(banner1) print(""" Please choose an option: 1* Crypto 2* hash-idenifier 3* GPG 00* go back """) Menu2 = int(input("ENC/DEC@STIA~$ ")) if (Menu2 == 1): # run crypto by cybereagle2001 os.system('cd /STIA/crypto && chmod +x crypto.sh && ./crypto ') elif (Menu2 == 2): # run the hash-identifier os.sysytem('hash-identifier') elif (Menu2 == 3): os.system('gpg -h') elif (Menu2 == 00): #go back to main menu print("go to main menu") else: # stay in Enc-Dec print("stay here") # ----------------------------------- # Password attaxks # ----------------------------------- elif(Menu == 3): print("Password Attacks") #Password Attacks part #---------------------------------- # Log out
import os print ('Downloading Skip-Thought Model ...........') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/dictionary.txt') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/utable.npy') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/btable.npy') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/uni_skip.npz') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/uni_skip.npz.pkl') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/bi_skip.npz') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/bi_skip.npz.pkl') print ('Download Completed ............')
# # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import sys import os import time os.system( "cd /piapple-souce" ) # Change to dir of the program file if you are using a diffrent install dir. os.system("sudo airmon-ng start wlan0") os.system( "sudo ifconfig at0 up" ) # Change to or wireless adapter of choise e.g mon0 if you are using the aircrack-ng suite. print "Monitor interface started." print "mon0 started" time.sleep(3) os.system( "sudo sh dhcp-start.sh" ) # Remove this line if you do not want to use a dhcp server with this program. os.system("sudo ifconfig ath0 up") time.sleep(3) os.sysytem("sudo python /piapple-souce/probrouter.py") time.sleep(5)
import os libs = {'numpy','matplotlib','sklearn','requests',\ 'jieba','beautifulsoup4','wheel','networkx','#spmpy',\ 'django','flask','werobot','pyqt5',\ 'pandas','pyopengl','pypdf2','docopt','pygame'} for lib in libs: try: os.sysytem("pip install --user " + lib) print("Successfully") except: print("Failed")