This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:dmurph14:start [2010/04/26 18:17] – dmurph14 | user:dmurph14:start [2010/04/26 18:49] (current) – dmurph14 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ATTENTION: MY JOURNAL IS LOCATED HERE. PLEASE VISIT IT. THANKS. http:// | ||
+ | |||
+ | ===CHATBOT BUILDING QUEST=== | ||
+ | |||
+ | How I made Claptrap... | ||
+ | |||
+ | 1) Download Eggdrop. http:// | ||
+ | |||
+ | 2) Follow the directions on the egghelp.org website to the T. | ||
+ | |||
+ | 3) Go through the config file and remove the two ' | ||
+ | |||
+ | 4) Add in the bot's ability to speak with megaHal. | ||
+ | |||
+ | 5) Compile your bot! | ||
+ | |||
+ | 6) Take ownership of your bot in the chat, and enjoy. | ||
+ | |||
+ | Claptrap learns from people and is quite fun to talk to. :3 | ||
+ | |||
+ | --------------------------------------------------------------------------------------------------------------------- | ||
+ | |||
+ | ===NETCAT QUEST=== | ||
+ | |||
+ | 1. man nc | ||
+ | |||
+ | --------------------------- | ||
+ | |||
+ | 2. What is netcat? You can use it by typing ' | ||
+ | |||
+ | In the simplest usage, "nc host port" creates a TCP connection to the given port on the given target host. Your standard input is then sent to the host, and anything that comes back across the connection is sent to your standard | ||
+ | |||
+ | Netcat can also function as a server, by listening for inbound connections on arbitrary ports and then doing the same reading and writing. With minor limitations, | ||
+ | |||
+ | And it can do this via UDP too, so netcat is possibly the "udp telnet-like" | ||
+ | |||
+ | Interesting options that can be utilized: | ||
+ | |||
+ | -c string - specify shell commands | ||
+ | |||
+ | -e filename - specify filename to exec after connect (use with caution). See the -c option for enhanced functionality. | ||
+ | |||
+ | -g gateway - source-routing hop point[s], up to 8 | ||
+ | |||
+ | -G num - source-routing pointer: 4, 8, 12, ... | ||
+ | |||
+ | -h - display help | ||
+ | |||
+ | -i secs - delay interval for lines sent, ports scanned | ||
+ | |||
+ | -l - listen mode, for inbound connects | ||
+ | |||
+ | -n - numeric-only IP addresses, no DNS | ||
+ | |||
+ | -o file - hex dump of traffic | ||
+ | |||
+ | -p port - local port number (port numbers can be individual or ranges: lo-hi [inclusive]) | ||
+ | |||
+ | -q seconds - after EOF on stdin, wait the specified number of seconds and then quit. | ||
+ | |||
+ | -b - allow UDP broadcasts | ||
+ | |||
+ | -r - randomize local and remote ports | ||
+ | |||
+ | -s addr - local source address | ||
+ | |||
+ | -t - enable telnet negotiation | ||
+ | |||
+ | -u - UDP mode | ||
+ | |||
+ | -v - verbose [use twice to be more verbose] | ||
+ | |||
+ | -w secs - timeout for connects and final net reads | ||
+ | |||
+ | -z - zero-I/O mode [used for scanning] | ||
+ | |||
+ | -x type - set TOS flag (type may be one of " | ||
+ | |||
+ | SEE http:// | ||
+ | |||
+ | ------------------------ | ||
+ | |||
+ | 3. To send stuff back and forth, one person must set themselves up as a server. | ||
+ | |||
+ | nc -l -p 4444 where 4444 is the port you will connect to, it must be above 1024. | ||
+ | |||
+ | You now have a server. Now, someone else can attach to that server. You must give the domain name so it knows who to connect to. | ||
+ | |||
+ | nc (domain name, ex: lab46.offbyone.lan) 4444 | ||
+ | |||
+ | Now you can talk to eachother, just like AIM or other chat clients. Cool beans. | ||
+ | |||
+ | --------------------------- | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | --------------------------------------------------------------------------------------------------------------------- | ||
+ | |||
+ | ===SHELL SCRIPTING QUEST=== | ||
+ | |||
+ | --------------------------------------------------------------------------------------------------------------------- | ||
+ | |||
+ | ===PATTERN MATCHING QUEST=== | ||
+ | |||
+ | --------------------------------------------------------------------------------------------------------------------- | ||
+ | |||
+ | ===BASIC SYSTEM ADMINISTRATION QUEST=== | ||
+ | |||
+ | Basically, we get our own system (vm33.student.lab) that can be reached via SSH. In this quest we are to mess with it, using our almighty Unix prowess. | ||
+ | |||
+ | To get there, type: lab46:~$ ssh (USERNAME)@vm33.student.lab | ||
+ | |||
+ | 1. First thing is first, I must create a name for myself. I used the following command... | ||
+ | |||
+ | useradd -m (USERNAME) | ||
+ | |||
+ | (-m creates my home directory, which is important!) | ||
+ | |||
+ | It will prompt you to enter your password, so do that. | ||
+ | |||
+ | 2. Then, I had to put myself in the admin and unix groups so I could do something. This was done using the following command... | ||
+ | |||
+ | usermod -G adm,unix (USERNAME) | ||
+ | |||
+ | (-G adds me to the group(s) which is a necessity.) | ||
+ | |||
+ | 3. | ||
+ | |||
+ | |||
+ | --------------------------------------------------------------------------------------------------------------------- | ||
+ | |||
+ | |||
+ | |||