sdkmanager "platforms;android-30"
sdkmanager "system-images;android-29;default;x86_64"
sdkmanager --channel=3 emulator
sdkmanager "build-tools;30.0.3"
sdkmanager "platforms;android-18"
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
| rule DetectContactToSpecificIP { | |
| meta: | |
| description = "Detect files attempting to contact IP 134.23.9.7" | |
| author = "Your Name" | |
| date = "2024-02-01" | |
| strings: | |
| $ip_string = "134.23.9.7" ascii | |
| condition: | |
| $ip_string | |
| } |
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 | |
| sudo apt install qemu | |
| wget https://cloud-images.ubuntu.com/releases/jammy/release/unpacked/ubuntu-22.04-server-cloudimg-amd64-vmlinuz-generic | |
| wget https://cloud-images.ubuntu.com/releases/jammy/release/unpacked/ubuntu-22.04-server-cloudimg-amd64-initrd-generic | |
| wget https://cloud-images.ubuntu.com/releases/jammy/release/ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img | |
| qemu-img create -f qcow2 -F qcow2 -b `pwd`/ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img test.img 8G |
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 | |
| # install android sdk and platform tools | |
| # chmod +x install_android_emulator.sh | |
| # run script with . ./install_android_emulator.sh | |
| WORKDIR="$(pwd)/android-sdk" | |
| install_java () { | |
| sudo apt update | |
| sudo apt install openjdk-8-jdk |
sudo apt update
sudo apt install gnome-core adwaita-icon-theme-full open-vm-tools-desktop yaru-theme-gtk
sudo reboot
gsettings set org.gnome.desktop.interface gtk-theme Adwaita-darkI recently purchased an old iMac 6,1. It's capable of some modern nix distributions, but doesn't play well if there is to "much" GUI. (e.g. default kali linux can be a bit laggy) So I decided to install an arch linux from scratch. I won't cover the whole installation as it may vary. And there are already a dozen straigt forward tutorials. So topics to be discussed are:
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 RPi.GPIO as GPIO | |
| import time | |
| import logging | |
| import paho.mqtt.client as mqtt | |
| CONFIG = { | |
| "broker": "naboo.lan", | |
| "motion_pin": 11, | |
| "logfile": "motion.log", | |
| "topic": "sensor/flur/motion", |
NewerOlder