function httpGET($url,$headers)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
This file contains hidden or 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
| id: CVE-2024-6387 | |
| info: | |
| name: RegreSSHion detect (based on software version) | |
| author: UnaPibaGeek | |
| severity: High | |
| description: Regression (CVE-2024-6387) software version checker. | |
| classification: | |
| cve-id: CVE-2024-6387 | |
| metadata: |
This file contains hidden or 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
| find nuclei-templates -type f -name "*.yaml" -exec grep -q "severity: info" {} \; -exec rm {} \; |
This file contains hidden or 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
| while IFS= read -r line; do echo "$line" >> "$(echo "$line" | awk -F. '{print $(NF-1)"."$NF}').txt"; done < subdomains.txt |
This file contains hidden or 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
| <?php | |
| # Fill our vars and run on cli | |
| # $ php -f db-connect-test.php | |
| $dbname = 'example1'; | |
| $dbuser = 'user'; | |
| $dbpass = ''; | |
| $dbhost = 'localhost'; | |
| $link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |
This file contains hidden or 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
| cat temp.txt| while read line ; do echo "QUIT"|openssl s_client -connect $line:443 2>&1|grep 'server extension "heartbeat" (id=15)' || echo $line: safe; done |
This file contains hidden or 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 re | |
| import sys | |
| urls=[] | |
| try: | |
| file_name=sys.argv[1] | |
| replacement=sys.argv[2] | |
| except: | |
| print("[!] Enter urls file name") |
This file contains hidden or 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
| giturls() | |
| { | |
| while read line; do echo $line | cut -d/ -f1-3;echo $line | cut -d/ -f1-4;echo $line | cut -d/ -f1-5;echo $line | cut -d/ -f1-6;echo $line | cut -d/ -f1-7;echo $line | cut -d/ -f1-8;echo $line | cut -d/ -f1-9;echo $line | cut -d/ -f1-10;echo $line | cut -d/ -f1-11;echo $line | cut -d/ -f1-12;echo $line | cut -d/ -f1-13;echo $line | cut -d/ -f1-14;echo $line | cut -d/ -f1-15;echo $line | cut -d/ -f1-16;echo $line | cut -d/ -f1-17;echo $line | cut -d/ -f1-18;echo $line | cut -d/ -f1-19;echo $line | cut -d/ -f1-20;echo $line | cut -d/ -f1-21;done | grep -v '?' | grep -v "\...$" | grep -v "\....$" | grep -v "\....$" | sort -u | |
| } |
This file contains hidden or 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
| data=['http://google.com?param1=value1', | |
| 'https://hello.com?param2=1¶m3=3', | |
| 'https://hello.com?param1=1¶m2=2¶m4=4'] | |
| final_params=[] | |
| all_prms=[] | |
| for line in data: | |
| all_prms.append(line.split('?')[1:][0].split('&')) | |
| for line in all_prms: |
This file contains hidden or 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
| #!/bin/bash | |
| # update apt-get | |
| export DEBIAN_FRONTEND="noninteractive" | |
| sudo apt-get update | |
| # remove previously installed Docker | |
| sudo apt-get remove docker docker-engine docker.io* lxc-docker* | |
| # install dependencies 4 cert |
NewerOlder