2024년 2월 2일
apt -y install awstats apt -y install libapache2-mod-security2 apt -y install libapache2-mod-md apt -y install libapache2-mod-evasive cd /home/master/public_html 프레임워크 https://codeigniter.com/download CMS Content Manage System wget https://wordpress.org/latest.tar.gz 애니멀스토리.com -> http://xn--9i1bs4kxmf1z6pdy7y.com 파이썬 기본 틀 def main(): print("attack") if __name__ == "__main__": main() mkdir 2024py nano 1.py import requests from bs4 import BeautifulSoup def main(target): print("attack") response = requests.get(target) print(response, type(response)) if __name__ == "__main__": target="http://192.168.0.211" main(target) python3 1.py 2.py import requests from bs4 import BeautifulSoup def main(target): print("attack") #wordpress log = "admin" pwd = "123456" #dvwa username = "admin" password = "123456" #basic id = "admin" pw = "123456" payload={"id":"admin","pw":"123456"} response = requests.post(target,payload) print(response, dir(response)) if response.status_code == 200: soup = BeautifulSoup(response.text, 'html.parser') print(soup) if __name__ == "__main__": target="http://192.168.0.211/login_chk.php" main(target)