text
stringlengths
1
93.6k
print "\t-c [csv_file]\tConfigurations file (CSV format). Example order (ip,netmask,gateway,vlan_id,vlan_name)"
print "\t-a\t\tAdd and configure all VLANS in provided file."
print "\t-d [vid]\tDelete specific VLAN ID."
print "\t-r\t\tRemove all virtual interfaces. (vconfig rem)"
print "\t-m\t\tCreate folders with the names of the VLANS. This creates in current directory (Useful for pentesting)."
print "\t--arp\t\tAutomatically ARP scan VLAN and output into 'ips.txt' in relevant VLAN folder (implies -m)"
print
print "An example configuration file (csv order: ip,netmask,gateway,vlanid,VLAN_Name):\n"
print "\t192.168.1.15,255.255.255.0,92.168.1.1,100,HOME_NETWORK"
print "\t192.168.2.15,255.255.255.0,192.168.2.254,200,MGMT_NETWORK"
print ""
print "# vconfigurator.py -i eth0 -c networks.csv (interactive mode)"
print "# vconfigurator.py -i eth0 -c networks.csv -a (auto-enable all vlans)"
print "# vconfigurator.py -i eth0 -c networks.csv -a --arp (auto-enable all vlans + ARP scan all vlans)"
print ""
exit(1)
if __name__ == "__main__":
print ""
print " ___ \033[1;32mVconfigurator v.%s\033[0m ___ \033[1;32mby: \\x90\033[0m" % VERSION
print ""
print " A simple utility to auto configure VLAN connectivity for pen testing. "
print ""
print " \033[1;31m--\033[0m https://github.com/m57/vconfigurator \033[1;31m--\033[0m "
print ""
if "-i" not in sys.argv:
usage()
else:
iface = sys.argv[sys.argv.index("-i")+1]
if "-r" in sys.argv:
rem_vlans(iface,1,id=-1)
exit(1)
if "-d" in sys.argv:
rem_vlans(iface,0,sys.argv[sys.argv.index("-d")+1])
exit(1)
if "-m" in sys.argv:
m = True
if "--arp" in sys.argv:
m = True
arp = True
if "-c" not in sys.argv:
usage()
else:
cfile = sys.argv[sys.argv.index("-c")+1]
init(iface, cfile)
if "-a" in sys.argv:
c_vlans(cfile, 1, m)
else:
c_vlans(cfile, 0, m)
# <FILESEP>
#=========================================================================
# [AutoDelete - Telegram bot to delete messages after specific time]
# Copyright (C) 2022 Arunkumar Shibu
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#=========================================================================
from time import time
from utils.info import *
from utils.database import *
from subprocess import Popen
from pyrogram import Client, filters
User = Client("auto-delete-user",
session_string=SESSION)
@User.on_message(filters.chat(CHATS))
async def delete(user, message):
try:
if bool(WHITE_LIST):
if message.from_user.id in WHITE_LIST:
return
if bool(BLACK_LIST):
if message.from_user.id not in BLACK_LIST:
return
_time = int(time()) + TIME
save_message(message, _time)