Jump to content

justapeon

Active Members
  • Posts

    181
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by justapeon

  1. New Episode:

    ################################################################
    # New hak5 episode?
    #
    file1=hak5episodes
    file2=hak5episodesold
    cp $file1 $file2
    elinks "revision3.com/hak5/episodes" > $file1
    # diff_file=diffed
    # diff $file1 $file2 | grep "<" | sed 's/^<//g' > $diff_file
    # cat diff_file
    I=`wc -c $file1 | cut -d' ' -f1`
    J=`wc -c $file2 | cut -d' ' -f1`
    if [ $I -ne $J ]
    then
    echo new episode
    echo new episode at $date > hak5lastupdate
    else
    echo no new episode
    fi

    List recent episodes:

    ####################################
    # Latest Hak5 episodes
    #
    #===============================
    # Assignments
    # --------------------------------
    datafile="hak5episodes"
    a=1
    flag=0
    # end assignments
    #=================================
    #
    # Get data file
    #---------------------------------
    elinks "revision3.com/hak5/episodes" > $datafile
    #=================================
    #
    # Extract and display data
    #---------------------------------
    while read line
    do fdata[$a]=$line
    echo $line | grep -q "All Episodes"
    if [ $? -eq 0 ]; then
    # header
    clear
    echo
    echo ------------------------------------------------
    echo Recent Hak5 episodes
    echo ------------------------------------------------
    echo ""
    let "flag = 1"
    fi
    echo $line | grep -q "Load More"
    if [ $? -eq 0 ]; then
    let "flag = 0"
    else
    if [ $flag -eq 1 ] ; then
    echo $line | sed 's/\[.*\]//' | sed 's/\Hak5//'
    fi
    fi
    let "a += 1"
    done < $datafile
    # footer
    echo ---------------------------------------------
    echo
    #===================================
    # End.
    ####################################

  2. We have a few obsolete 32 bit machines. use them for routers, all kinds of servers, and desktop systems. Pastic router runs some form of nix too. Our robot runs on a pentium one running linux. Getting into Arm. Put debian on the Nslu2. Plan to do that on the Pogoplug, Raspberry Pi, and etc If I ever get one of those.

  3. Back in high school, if you propelled a nickel into the slot of a payphone, you could get free local calls. Yes, you got the nickel back. At a washeteria, if you put a dollar into the change machine and then pressed the cancel button at just the right time, you could get your dollar back and the change too. First real hack was when I had just lost my job from a finance company (no big loss). Part of my former job was to pull credit bureaus on a sort of teletype machine that used an acoustic coupler. Got the manual for that unit with a listing of the ascii codes. I took my C=64 and developed the code I needed to log into the CB. My former employer was not smart enough to change the password. Logged in without a problem, then logged off immediately. Just doing that was revenge enough. Did not pull anyone's personal information. "Man has to know his limitations" fractured quote from a Clint Eastwood movie.

×
×
  • Create New...