Showing posts with label JMU. Show all posts
Showing posts with label JMU. Show all posts

Jun 2, 2011

Digital Forensics Debut: Honeynet Challenge 7

In case you didn't already know, I recently developed interest in Digital Forensics witch is a branch of Computer Science that deals with recovering and/or analyzing data from media devices like hard drives and RAM, usually in an attempt to determine the how and the why of computer related attacks on individuals and businesses (Thanks Wikipedia...).I am fairly new to the topic and before December, I am supposed to master the subject contents (My degree thesis is on Linux Forensics- I will probably talk more about it some other time).

To have a better feeling of the field and get some hands-on experience, I joined the Computer Forensics Group at JMU. As beginners, we participated in the Honeynet Challenge No 7 (see http://www.honeynet.org/challenges/2011_7_compromised_server), which provided us with an image of the hard drive and the RAM of a compromised Linux machine and we had to figure out what happened.

The group spent a few days on it using open source tools like Autopsy for file system browsing, the beta version of Volatility 1.4 and Volatilitux. Though we were not among the winners, we were half a point shy of a 4-way tie for 3rd place (i.e. 6th out of 16 participants). That's pretty good for beginners :D.

Hopefully, we will do better the next time. Oh and yeah, the group next project involves Facebook and is very interesting :).

P.S: You can get a copy of our submission upon request.

May 13, 2011

Breaking Out of "Jail" : Restricted Shell

No, I am not writing a sequel for the show "Prison Break", though I would love to see it come back to the screens :).

If you have never used a Linux or Unix-like terminal to administer a computer (yeah, it's a geeky post), you better stop reading now. The purpose of this post is to give some ideas on ways to get out of restricted shells on Linux systems.

- "But what is this restricted shell thing you are talking about?".
I assume as a Linux user (if you are not, you should have stopped reading by now :D), you know that each time a terminal is launched, a special program is started to read your commands: The Shell. There exist many shells (Boune shell or bash, Korne Shell or kshell, and more) and they are very powerful as you might expect. However, mostly in production environments where multiple users can remotely access a shell of a machine, it is good practice for administrators to apply restrictions on the commands that a normal user can execute on the host with the help of restricted shells (a good example is rbash and this post How to restrict access with rbash describe a way to implement it).

- "So how do I break out of this restrictive "prison"?", two words: Shell Escapes.
Many command-line applications provide a way to fall back into a shell, restrictive or not. The one I will mostly talk about is offered by vi/vim the text editor, since it can permit you to access an unrestricted shell following these instructions:

1. Once in vi/vim, type ESC, then:
  • Type “:set shell=/bin/bash
  • Type “:shell” and VOILA!!!!! 

Unfortunately, vi/vim also has a restricted version rvi/rvim in which this trick will not work. If you are stuck with rvi, you can try the following methods to access vi with other applications:

2. Using the text-based browser lynx:
  • open a local file with lynx (e.g.: $ lynx /etc/passwd)
  • type “o” to open the options; change the second option (Editor) to “/bin/vi” and save the changes to go back at the main page.
  • Type “e” to edit the file with vi
  • Follow instructions in 1.
3. Using the mail (local email client) command:
  • $ set VISUAL=/bin/vi
  • $ mail -s "subject" "destination email"
  • Type "~v" on the next line to edit the mail with vi.
  • Follow the instructions in 1.
There are various other ways to obtain the same result, this was just a the tip of the iceberg.
ENJOY YOUR FREEDOM!!!


UPDATE: Guess what?? The browser Elinks is also vulnerable to shell escapes. This is based on the feature (hacking feature?) allowing users to edit the contents of text boxes on a webpage using external editors (i.e. using other applications on the machine... Yayyy vi/vim). All you have to do is setup the $EDITOR environment variable with "/bin/vi" and the rest is history... Wait you need more details?? OK:

  • $ set EDITOR=/bin/vi
  • Open a webpage containing a text box (should be easy to find on the Internet. If you can not, well lmgtfy!!!).
  • Navigate to the text-box area and Enter to edit, the press F4 (or whatever is used in the configurations) to edit the text box externally, and you should see something familiar :=)

Mar 21, 2011

Courage to Engage

Me trying to speak in public :)
This was the theme of this year's edition of ISLC (International Student Leadership Conference), a panel of internationals, for internationals, by internationals, organized and hosted by James Madison University and Eastern Mennonnite University.
Students from all parts the US get together to learn and discuss the tips and tricks necessary to a successful leader, coupled with fun activities (dance party for example). It is a great occasion to meet people from all around the world studying or living in the United States, hear their stories and learn about their culture. I can not possibly layout all the lessons that could be gained throughout the conference (go next year if you can, and experience for yourself!!), but I will discuss a couple points I personally gathered.

          First, a general overview of the theme: "Courage to Engage". A leader is someone that people follow and trust to develop/achieve a project, a passion or something they believe in. So each of us is a full blown tank of leadership potential waiting to burst. This does not mean that everybody has be the president of a group or war leader or anything like that (though these are included), it all starts with the little things such as having the courage to engage into a difficult conversation or with a stranger or simply getting out of your comfort zone to have a connection with your alter ego.

          One example can be derived from the inspiring documentary movie "Crossing Borders" by Arnd Wachter, which follows 8 students (4 Americans and 4 Moroccans) living together in Morocco for a week (see trailer below).  The movie was shown at the conference, followed by a very interesting group discussion on the topics developed in the movie (the previous picture was taken at that moment), moderated by the author himself Arnd who gracefully accepted to participate at the event.


CROSSING BORDERS (Trailer, 3 mins) from CROSSING BORDERS on Vimeo.

"There is enough religion in this world to hate each other, but not enough religion to love one another" - King Abdullah II of Jordan

Search This Blog