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
| package network | |
| import ( | |
| "errors" | |
| "net" | |
| ) | |
| // LocalIP get the host machine local IP address | |
| func LocalIP() (net.IP, error) { | |
| ifaces, err := net.Interfaces() |
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 | |
| // php-reverse-shell - A Reverse Shell implementation in PHP | |
| // Copyright (C) 2007 pentestmonkey@pentestmonkey.net | |
| // | |
| // This tool may be used for legal purposes only. Users take full responsibility | |
| // for any actions performed using this tool. The author accepts no liability | |
| // for damage caused by this tool. If these terms are not acceptable to you, then | |
| // do not use this tool. | |
| // | |
| // In all other respects the GPL version 2 applies: |
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 | |
| # Sign a file with a private key using OpenSSL | |
| # Encode the signature in Base64 format | |
| # | |
| # Usage: sign <file> <private_key> | |
| # | |
| # NOTE: to generate a public/private key use the following commands: | |
| # | |
| # openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048 | |
| # openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=' | |
| ' | |
| set -x | |
| sudo apt -y install man bash-completion git jq curl build-essential netcat wget psmisc file net-tools unzip zip moreutils pv tree whois openssh-client |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=' | |
| ' | |
| set -x | |
| sudo apt -y install man bash-completion git jq curl build-essential netcat wget psmisc file net-tools brotli unzip zip moreutils pv tree whois openssh-client |
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
| # -*- coding: utf-8 -*- | |
| import tempfile | |
| from reportlab.graphics import renderPDF | |
| from reportlab.pdfgen import canvas | |
| from reportlab.lib.pagesizes import letter, A4 | |
| from reportlab.pdfbase import pdfmetrics | |
| import qrcode | |
| import qrcode.image.svg | |
| from svglib.svglib import svg2rlg | |
| from reportlab.pdfbase.ttfonts import TTFont |
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
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" version="1.0"> | |
| <xsl:template match="/"> | |
| <xsl:value-of select="php:function('opendir','.')"/> | |
| <xsl:value-of select="php:function('readdir')"/> | |
| <xsl:value-of select="php:function('readdir')"/> | |
| <xsl:value-of select="php:function('readdir')"/> | |
| <xsl:value-of select="php:function('readdir')"/> | |
| <xsl:value-of select="php:function('readdir')"/> | |
| <xsl:value-of select="php:function('readdir')"/> | |
| <xsl:value-of select="php:function('readdir')"/> |
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
| <?xml version="1.0"?> | |
| <Company> | |
| <Employee> | |
| <FirstName>Tanmay</FirstName> | |
| <LastName>Patil</LastName> | |
| <ContactNo>1234567890</ContactNo> | |
| <Email>tanmaypatil@xyz.com</Email> | |
| <Address> | |
| <City>Bangalore</City> | |
| <State>Karnataka</State> |
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
| #!/usr/local/bin python | |
| #coding=utf8 | |
| try: | |
| from urllib import quote | |
| except: | |
| from urllib.parse import quote | |
| def generate_info(passwd): | |
NewerOlder