This file contains 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 | |
NAME=tcpDump | |
PIDFILE=/var/run/$NAME.pid | |
DAEMON=/usr/sbin/tcpdump | |
DAEMON_OPTS="-i eth0 -w /RL4/outfile.pcap" | |
mkdir /RL4 | |
touch /RL4/outfile.pcap | |
case "$1" in | |
start) |
This file contains 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 | |
[ $# -lt 1 ] && echo too few args && exit 1 | |
while test "$1"; do | |
if [[ `ping "$1" 2` == "$1 is alive" ]] | |
then | |
echo $1 is alive | |
else | |
echo $1 is down | |
fi | |
shift |
This file contains 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
#include <stdio.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <dirent.h> | |
#include <sys/stat.h> | |
#include <time.h> | |
int main(int argc, char* argv[]) | |
{ | |
if (argc < 2) |
This file contains 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/sh | |
echo "Stopping firewall and allowing everyone..." | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F |
This file contains 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 | |
mkfifo mypipe | |
nc -l 8885 0<mypipe | nc -p 42 10.80.32.1 111 1>mypipe |
This file contains 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 | |
date | |
ls -la / | |
ls -la /etc | |
ls -la /sbin | |
ls -la /usr | |
ls -la /usr/bin | |
ls -la /usr/sbin | |
ls -la /etc/rc2.d |
This file contains 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
# $Id$ | |
# $Revision$ | |
# -*- coding: binary -*- | |
require 'fileutils' | |
@client = client | |
host,port = @client.session_host, @client.session_port | |
key = nil | |
path = nil | |
open_key = false | |
name = nil |
This file contains 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
run uploadexec -e "/root/wintools/psloglist.exe" -o "/accepteula -m 2" -r -v | |
run uploadexec -e "/root/wintools/psloglist.exe" -o "/accepteula -m 2 SECURITY" -r -v | |
run uploadexec -e "/root/wintools/psloglist.exe" -o "/accepteula -m 2 APPLICATION" -r -v |
This file contains 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
package uscrime; | |
//Filename:TestUsCrime | |
//Author: Cody M Rinehart | |
//Date: 25032017 | |
/*Purpose: The purpose of this program is to create the menu and read the user's | |
input to determine what data will be printed out to the user*/ | |
import java.util.Scanner; | |
import java.io.IOException; |
OlderNewer