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
| #required for host command | |
| sudo apt-get install bind9-host -y | |
| # update IP to KeyValue-Store | |
| # ! chmod +x ! | |
| #/opt/updateIP.sh: | |
| #!/bin/sh | |
| IP=$(host myip.opendns.com resolver1.opendns.com | tail -n1 | awk '{ print $4 ; exit }') |
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
| #Check Logical Volume (LV) details: | |
| sudo lvdisplay | |
| #Look for the LV path associated with your root filesystem (e.g., /dev/ubuntu-vg/ubuntu-lv). | |
| sudo lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv | |
| #Resize the Filesystem | |
| sudo resize2fs /dev/ubuntu-vg/ubuntu-lv | |
| #confirm |
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 | |
| #remove any conflicting packages | |
| for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
| # Add Docker's official GPG key: | |
| sudo apt-get update | |
| sudo apt-get install ca-certificates curl gnupg | |
| sudo install -m 0755 -d /etc/apt/keyrings |
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
| - certificate creation on another machine than the webhost | |
| - need some linux (deb/ubuntu): | |
| apt-get install certbot | |
| command: | |
| cartbot certonly --manual //to start acme-challenge | |
| - place the file from promt with content in prompted directory on server | |
| + add a web.config to that directory with following content: |
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
| summary: | |
| goal is to accept routes for subdomains and return some specific stuff from db | |
| e.g: | |
| glossar.xyz.de -> lexikon.hepf.com/Service/getGlossar/(service_guid) | |
| where service_guid is query's from db because of some entry indicating glossar.xyz.de is from that service-guid | |
| start: | |
| http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain |
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
| [REMOTE CODE EXECUTION VIA HEADER] | |
| [Wed Feb 10 07:36:12 2016] [error] [client 84.2.197.187] Invalid URI in request HEAD towards the green fields outside. Watch the goats chewing the grass. What is the meaning of life? Life isn't about getting to the end. Goats know this. You should know too. Goats are wise. Goats are cute. Listen to them! This is the message. Love goats, love the Internet! \xf0\x9f\x90\x90 Kecske. HTTP/1.0 | |
| [maliciously crafted request designed to execute arbitrary code on the server by causing a heap overflow in php. | |
| a server limit has been exceeded such as number or length of request header field(s).] | |
| error log: | |
| [Wed Feb 10 00:55:33 2016] [error] [client 185.87.121.69] request failed: error reading the headers | |
| corresponding access log: |
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
| userful docs: | |
| build info: http://www.34m0.com/2011/12/installing-and-configuring-cband-for.html | |
| configuration: http://dembol.org/blog/mod_cband/faq/ | |
| cerators page: http://dembol.org/blog/mod_cband/ (some links down ) | |
| download from: | |
| wget http://downloads.sourceforge.net/project/cband/mod-cband/mod-cband-0.9.6.1/mod-cband-0.9.6.1.tgz | |
| other resources: | |
| http://ubuntuforums.org/archive/index.php/t-899897.html - thead that showed th solution |