๐์ ๋ณด๋ณด์/๋คํธ์ํฌ ๋ณด์
๋คํธ์ํฌ ๋ณด์ - NAC ์ฐํ ๊ด๋ จ Cheat Sheet
Janger
2024. 3. 28. 16:53
728x90
https://redteam.coffee/woot/nac-bypass-cheatsheet
NAC Bypass Cheatsheet | Ikigai
This post lists down a few of the techniques which can be used to bypass Network Access Control solutions(NAC).
redteam.coffee
macchanger
macchanger -m XX:XX:XX:XX:XX:XX
randommac.py
#!/usr/bin/python
import subprocess
import sys
import threading
import time
class MyThread (threading.Thread):
die = False
def __init__(self, name):
threading.Thread.__init__(self)
def run(self):
while not self.die:
print "changing MAC Adress \n\n" + (time.ctime())
subprocess.call(["sudo","ifconfig","eth0","down"]) # change interface if required
subprocess.call(["sudo","macchanger","-A","eth0"]) # change interface if required
subprocess.call(["sudo","ifconfig","eth0","up"]) # change interface if required
print "MAC Changed\n"
time.sleep(50) # mac adress will change in 50 seconds.
def join(self):
self.die = True
print "bye"
sys.exit(1)
if __name__ == '__main__':
f = MyThread('first')
f.start()
try:
while True:
time.sleep(2)
except KeyboardInterrupt:
f.join()
728x90