This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os | |
binaryPaths = ('/usr/bin' , '/usr/sbin' , '/bin', '/sbin') | |
for binaryPath in binaryPaths: | |
for rootDir,subDirs,subFiles in os.walk(binaryPath): | |
for subFile in subFiles: | |
absPath = os.path.join(rootDir,subFile) | |
permission = oct(os.stat(absPath).st_mode)[-4:] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import json | |
import requests | |
import os | |
import sys | |
from termcolor import colored | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import hashlib | |
import os | |
import argparse | |
import pickle | |
import sys | |
import time | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
# Loading dns module. | |
try: | |
import dns.resolver | |
resolver = dns.resolver.Resolver() | |
resolver.timeout = 0.10 | |
resolver.lifetime = 0.10 | |
except: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
''' | |
This script will copy all files with a specific extension to a directory. | |
Script will ignore all the files which has same content. | |
Usage : ./duplicateRemoverCopy.py -s /home/ -e .mp3 -d /music | |
''' | |
import argparse | |
import os |