Skip to content

spring-epfl/com402-stack-smashing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

COM-402 Homework 1. Stack Smashing

Supplementary material.

VM Images

You will test your exploits within the virtual machine (VM) we provide that is configured with Debian Lenny that has the address space layout randomization (ASLR) turned off.

VirtualBox

VMWare

Tips for the VM Images

  • User account username/password: user/user
  • Root account username/password: root/root

Networking

It is convenient to access the VM via SSH (copy-paste works better, and you can transfer files both way using the scp command). The images we provide use the Network Address Translation (NAT) networking mode by default.

If you're using VirtualBox, for example, you need to do the following steps to set up NAT networking:

  • Open the settings of your image
  • Go to the "Networking" panel
  • Choose "Advanced" and click on the "Port forwarding" button
  • Add a forwarding rule (green "plus" button on the side)
  • In the forwarding rule, leave IP addresses empty, set Host port to 2222, and Guest port to 22 (the default SSH port)
  • Restart the virtual machine

Now, you can connect to your virtual machine via ssh: ssh -p 2222 user@127.0.0.1

This is how you copy files TO the VM: scp -P 2222 <path_to_copy_from_on_host_OS> user@127.0.0.1:<path_to_copy_to_on_guest_OS>

Copy files FROM the VM: scp -P 2222 user@127.0.0.1:<path_to_copy_from_on_guest_OS> <path_to_copy_to_on_host_OS>

Acknowledgements

This assignment is based in part on materials from Prof. Hovav Shacham at UC San Diego, Prof. Dan Boneh at Stanford and Adam Everspaugh at UW Madison. Adapted for COM-402 by Ceyhun Alp.

About

EPFL COM-402 Stack Smashing Exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published