---
# System prepended metadata

title: Untitled

---

## network exploits

- qemu - https://www.exploit-db.com/exploits/47320
  - error on running the script
  - need to work on my host machine as well, as the exploit is old i am working on getting the older versions of softwares.


- go ssh server exploit - https://www.exploit-db.com/exploits/48121

so we created a ssh server on host machine and ssh'ed into it with a different machine. On running the script we got the following output and there was a panic on remote server.

```    
[nix-shell:~/securethings]$ python 48121.py  localhost 22 wired
Malformed auth request sent. This should cause a panic on the remote server.
```

## memory exploits

- imagemagick memory leak - https://www.exploit-db.com/exploits/45890
    - as the shell script is very old the bash syntax didnt work with the current version. 
    - will install a linux distribution that allows rolling back of versions to get this working


- GNU Barcode https://www.exploit-db.com/exploits/44798
    - The vulnerability is caused due to an error in the 'cmdline.c'.
```
128: int commandline(struct commandline *args, int argc, char **argv,
129:                 char *errorhead)
130: {
131:     struct commandline *ptr;
132:     char *getopt_desc = (char *)calloc(512, 1);
133:     int desc_offset = 0;
134:     int opt, retval;
135:     char *value;
```

## working on setting up cilium
- Documentation of work done so far
    
    Install the required dependencies:
        Cilium requires a Linux kernel with BPF support. Check if your kernel has BPF support by running the following command:
        `cat /boot/config-$(uname -r) | grep -i bpf`
        If the command returns nothing, you will need to install a kernel with BPF support.
        You will also need to install some dependencies, such as libelf-dev and bison.

    Install Cilium:
        There are several ways to install Cilium, including using a package manager (such as apt-get or yum), building from source, or using a pre-built binary.
        For example, to install Cilium using apt-get, run the following command:
        sudo apt-get install cilium

    Configure Cilium:
        Cilium uses a configuration file to specify its behavior. The default configuration file is `/etc/cilium/cilium.conf`, but you can specify a different configuration file using the --config flag.
        In the configuration file, you can specify options such as the network interface to use, the IP range to assign to nodes, and the CIDR notation for the pods.

    Start Cilium:
        Once Cilium is installed and configured, you can start it using the following command:
        `sudo cilium-agent`
        If you want to run Cilium as a daemon, you can use the --daemon flag.

    
    Install the Cilium CLI tool:
        Cilium includes a command-line interface (CLI) tool that you can use to manage and monitor your Cilium deployment.
    
    To install the CLI tool, run the following command:
        `sudo apt-get install cilium-cli`
        Once installed, you can use the cilium command to perform various tasks, such as viewing the status of your Cilium deployment, adding or removing nodes, and troubleshooting issues.

