|
|
Parent Directory
| Penetration Testing
by Brett Lee
===============================
I'm not an expert in the field. But I do know it's nice to copy your bag
of tricks over to the system you are testing.
For scratch space to copy and edit your files, try this:
for a in `find / -type d 2>/dev/null`; do
[ -w $a ] && ( echo -n "Writeable: "; echo $a; )
done
If you happen to find a place, then see if you have `vi` available.
By default, `vi` creates temporary files in /var/tmp. If /var/tmp is not
in your scratch space, you'll need to do something like this in order to
use `vi`:
shell$> echo "set directory=/writeable/directory" > /writeable/directory/.exrc
and then one of these:
Bash> export HOME=/writeable/directory
Bourne> HOME=/writeable/directory
Csh> setenv HOME /writeable/directory
See the files in this directory for some additional examples.
What if you have no directories that are writeable, well, you can look for
a file that is both writeable and executable. Something like this may help:
for a in `find / -type f 2>/dev/null`; do if ( [ -x $a ] && [ -w $a ] ); then
echo $a; fi; done
Obviously, these are not script kiddie tools, but instead are for
beginners interested in simple 'white hat' testing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In an effort to provide a service of value to the open source community, I've put together this website that containing many of my notes and references.
This website is not authoritative and it is certainly not without errors; it is a work in progress.
In addition to my contributions you will also find the work of others. Where the work is not mine, I have tried to indicate that, and to reference the source of the work: by citing the original author, retaining the authors' name and license wherever present, or by placing the work in a suitably named URL containg /external/ in the path. If you find any work here that should not be publically available, please send me a note and it will be removed.
As for my contributions, you are free to use any of *MY* notes or code from this website unless specifically instructed otherwise.
Brett Lee, Ph.D., President & CEO
Everything Penguin, Inc.
|
|
|