Jump to content

Mit0s1s

Active Members
  • Posts

    131
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Mit0s1s

  1. Here is another Hello World, but this one writes a little Hello World bash script then removes after running.

    DELAY 2000

    GUI SPACE
    DELAY 500
    STRING Terminal
    ENTER
    DELAY 300
    STRING nano helloWorld.sh
    ENTER
    DELAY 300
    STRING #!/bin/bash
    ENTER
    STRING STR="Hello World!!"
    ENTER
    STRING echo $STR
    ENTER
    CONTROL X
    DELAY 300
    ENTER
    STRING Y
    ENTER
    DELAY 300
    STRING chmod +x helloWorld.sh
    ENTER
    DELAY 300
    STRING ./helloWorld.sh
    ENTER
    DELAY 300
    STRING rm helloWorld.sh
    ENTER

  2. i haven't messed with the serial slot yet, but I do have a pi running kali connected to the ethernet port. I have a small 7 inch lcd connected to the pi which I am displaying different info from the MKV. I am transfering the data via ssh currently. I set up ssh keys between the two and have the pi just scp over and grab log files or issue commands like "iw dev wlan0 station dump > /dev/tty1" to display MKV info on the pi's display

  3. this is the script i call from a dip switch to run at startup.

    ## random host name
    
    ## assign newhn a random variable
    newhn=$(cat /dev/urandom | tr -dc 'A-Za-z' | head -c8)
    
    ##update host name and hosts
    echo "127.0.1.1 $newhn" > /etc/hosts
    cat /etc/hosts.old >> /etc/hosts
    
    ##update uci
    uci set system.@system[0].hostname=$newhn
    uci commit system
    echo $(uci get system.@system[0].hostname) > /proc/sys/kernel/hostname
    
    ##random ssid for wlan0
    newssid=$(cat /dev/urandom | tr -dc 'A-Za-z' | head -c8)
    uci set wireless.@wifi-iface[0].ssid=$newssid
    uci commit
    wifi
    
×
×
  • Create New...