User Tools

Site Tools


haas:spring2018:unix:projects:bdp0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
haas:spring2018:unix:projects:bdp0 [2018/03/05 19:30] – created wedgehaas:spring2018:unix:projects:bdp0 [2018/03/05 19:47] (current) – [Forbidden tools] wedge
Line 17: Line 17:
 As a side job to help you through school, you've become employed at a local microblogging and meme archival firm as their head UNIX IT lead. Your run-of-the-mill tasks include setting up single-purpose web pages and web-browsable images to aid the researchers in tracking the evolution of memes. As a side job to help you through school, you've become employed at a local microblogging and meme archival firm as their head UNIX IT lead. Your run-of-the-mill tasks include setting up single-purpose web pages and web-browsable images to aid the researchers in tracking the evolution of memes.
  
-Everything was going fine, until one day a researcherwith freshly obtained meme from a multi-seeded bittorrent transfer, experienced a hard drive failure.+Everything was going fine, until one day a researcher with freshly obtained meme (from a multi-seeded bittorrent transfer), experienced a hard drive failure.
  
-Preservation of this meme is downright critical to on-going research, and with seconds to spare before the system locks up, you manage to do a memory dump of the region of RAM containing the downloaded meme data, and transfer it to another system before it becomes unresponsive.+Preservation of this meme is downright //critical// to on-going research, and with seconds to spare before the system locks up, you manage to do a memory dump of the region of RAM containing the downloaded meme data, and transfer it to another system before it becomes unresponsive and unavailable.
  
-The last thing you see on the screen before the system locks up is a hex address of the table of contents and its octal length:+The last thing you see on the screen before the system locks up is a hex address of the table of contents and its octal length, which was stored in a **memdump.status** file. 
 + 
 +For example, you may see something like:
  
   * address (in hex): **0x1ced3**   * address (in hex): **0x1ced3**
Line 37: Line 39:
  
 =====Obtain the file===== =====Obtain the file=====
-This week's project is located in the **udr0/** subdirectory of the UNIX Public Directory, in a file called: **memdump.ram**+This week's project is located in the **bdp0/** subdirectory of the UNIX Public Directory, in files called: **memdump.ram** and **memdump.status**, both located in a directory by the name of your lab46 username.
  
 There is a companion file called **dectohex.c**, which may be of some value, directly or indirectly. There is a companion file called **dectohex.c**, which may be of some value, directly or indirectly.
Line 72: Line 74:
 Additionally, looking through any companion files provided in this project may offer you some unique value. Additionally, looking through any companion files provided in this project may offer you some unique value.
  
-====Forbidden tools==== 
- 
-For the purposes of this project, you are not permitted to use any hex editing tools (hexdump, bvi, etc.) to assist you in producing the solution. Any steps relying in any part on the use of these tools will see credit lost. The aim of this project is to test your low-level data manipulation and calculation skills. 
- 
-You are also forbidden from using any external-to-the-system translation tools (like hex/dec/oct calculators on the web). You must perform any and all calculations using tools on lab46 (and explain your usage of them in your list of instructions!). 
  
-You can certainly use other tools to help you in better determining your steps to solution. 
 ====quick dd primer==== ====quick dd primer====
 Those with little patience and low observation skills are often quick to label **dd** a difficult or weird tool. While it is true that **dd** is no **ls**, it is a powerful tool, quite useful in its particular domain. Those with little patience and low observation skills are often quick to label **dd** a difficult or weird tool. While it is true that **dd** is no **ls**, it is a powerful tool, quite useful in its particular domain.
Line 94: Line 90:
  
 <cli> <cli>
-lab46:~/src/unix/udr0$ dd if=/dev/motd of=thing+lab46:~/src/unix/bdp0$ dd if=/dev/motd of=thing
 1+1 records in 1+1 records in
 1+1 records out 1+1 records out
 859 bytes (859 B) copied, 0.000149696 s, 5.7 MB/s 859 bytes (859 B) copied, 0.000149696 s, 5.7 MB/s
-lab46:~/src/unix/udr0+lab46:~/src/unix/bdp0
 </cli> </cli>
  
Line 116: Line 112:
  
 <cli> <cli>
-lab46:~/src/unix/udr0$ dd if=/etc/motd of=thing bs=1+lab46:~/src/unix/bdp0$ dd if=/etc/motd of=thing bs=1
 859+0 records in 859+0 records in
 859+0 records out 859+0 records out
 859 bytes (859 B) copied, 0.00400408 s, 215 kB/s 859 bytes (859 B) copied, 0.00400408 s, 215 kB/s
-lab46:~/src/unix/udr0+lab46:~/src/unix/bdp0
 </cli> </cli>
  
Line 131: Line 127:
  
 <cli> <cli>
-lab46:~/src/unix/udr0$ dd if=/etc/motd of=/dev/tty+lab46:~/src/unix/bdp0$ dd if=/etc/motd of=/dev/tty
 ############################################################################## ##############################################################################
 ##  __             _ _   __ ##  __             _ _   __
Line 154: Line 150:
 1+0 records out 1+0 records out
 859 bytes (859 B) copied, 0.000158424 s, 5.4 MB/s 859 bytes (859 B) copied, 0.000158424 s, 5.4 MB/s
-lab46:~/src/unix/udr0+lab46:~/src/unix/bdp0
 </cli> </cli>
  
Line 182: Line 178:
  
 <cli> <cli>
-lab46:~/src/unix/udr0$ dd if=/etc/motd of=/dev/tty skip=659+lab46:~/src/unix/bdp0$ dd if=/etc/motd of=/dev/tty skip=659
 dd: ‘/etc/motd’: cannot skip to specified offset dd: ‘/etc/motd’: cannot skip to specified offset
 0+0 records in 0+0 records in
 0+0 records out 0+0 records out
 0 bytes (0 B) copied, 0.000252174 s, 0.0 kB/s 0 bytes (0 B) copied, 0.000252174 s, 0.0 kB/s
-lab46:~/src/unix/udr0+lab46:~/src/unix/bdp0
 </cli> </cli>
  
Line 197: Line 193:
  
 <cli> <cli>
-lab46:~/src/unix/udr0$ dd if=/etc/motd of=/dev/tty bs=1 skip=659+lab46:~/src/unix/bdp0$ dd if=/etc/motd of=/dev/tty bs=1 skip=659
 s@corning-cc.edu or wedge@lab46.corning-cc.edu s@corning-cc.edu or wedge@lab46.corning-cc.edu
 ## ##
Line 207: Line 203:
 200+0 records out 200+0 records out
 200 bytes (200 B) copied, 0.00165582 s, 121 kB/s 200 bytes (200 B) copied, 0.00165582 s, 121 kB/s
-lab46:~/src/unix/udr0+lab46:~/src/unix/bdp0
 </cli> </cli>
 =====Submission===== =====Submission=====
Line 214: Line 210:
   * Resulting image has been scaled approximately 2x to a resolution of 414x418   * Resulting image has been scaled approximately 2x to a resolution of 414x418
   * Image has been converted to **PNG** format and named **meme0531.png**   * Image has been converted to **PNG** format and named **meme0531.png**
-  * Image has been placed in your Lab46 webspace, in a **unix/udr0/** directory which is searchable to the web server (world search); image is world readable.+  * Image has been placed in your Lab46 webspace, in a **unix/bdp0/** directory which is searchable to the web server (world search); image is world readable.
     * No superfluous permissions should be present for group/other. User obviously needs adequate permissions for you to manipulate it.     * No superfluous permissions should be present for group/other. User obviously needs adequate permissions for you to manipulate it.
     * All parent directories need to also be world searchable in order to function     * All parent directories need to also be world searchable in order to function
Line 233: Line 229:
  
 <cli> <cli>
-lab46:~/src/unix/bdp0$ submit unix bdp0 bdp0steps meme0531.png http://lab46.corning-cc.edu/~USERNAME/unix/udr0/meme0531.png+lab46:~/src/unix/bdp0$ submit unix bdp0 bdp0steps meme0531.png http://lab46.corning-cc.edu/~USERNAME/unix/bdp0/meme0531.png
 Submitting unix project "bdp0": Submitting unix project "bdp0":
     -> bdp0steps(OK)     -> bdp0steps(OK)
     -> meme0531.png(OK)      -> meme0531.png(OK) 
-    -> http://lab46.corning-cc.edu/~USERNAME/unix/udr0/meme0531.png(OK)+    -> http://lab46.corning-cc.edu/~USERNAME/unix/bdp0/meme0531.png(OK)
  
 SUCCESSFULLY SUBMITTED SUCCESSFULLY SUBMITTED
 lab46:~/src/unix/bdp0$  lab46:~/src/unix/bdp0$ 
 </cli> </cli>
haas/spring2018/unix/projects/bdp0.1520278203.txt.gz · Last modified: 2018/03/05 19:30 by wedge