os x

You are currently browsing the archive for the os x category.

Marc Lehmann has written a zip Password cracker similar to fzc or zipcrack. It can be used to either bruteforce or try a dictionaty attack on a password protected file.
It’s called fcrackzip and can be found here.
Just follow the instruction given in the Readmefile and compile it. This work’s great for me under 10.5.6 as long as you have X Code installed.

Here’s how I use it:

fcrackzip -b -c aA1 -l 6-8 -v -u file.zip

-b : bruteforce the password
-c : use the following character classes for cracking:

a    use all lowercase character
A   use all uppercase character
1    use all digits

-l 6-8 : Try passwords between 6 to 8 characters in length
-v be more verbose (this will print out the actual used password)
-u file.zip : Try to decompress first file in file.zip with the generated password.

And when the output starts with ‘PASSWORD FOUND!!!!: pw ==’, I’m happy.

For more command line options see the project page under http://www.goof.com/pcg/marc/fcrackzip.html.

On OS X you can easily decode base64 strings with the openssl command

openssl base64 -d -in <(echo “dGhpcyBpcyBhIHRlc3QKCg==”)

just drop the ‘-d’ if you want to encode things.

I found this here

Marc Liyanage wrote a nice Apple Script which easily allows you to switch from the Finder to the Terminal.
Just download it here and drag the script to the upper free space in the Finder.

Clicking it results in a new Terminal window which location is the same as the Finder location.
new Finder icon

Here’s how it looks.

P.S. this works under OS X 10.6 ;)

I don’t know what’s going on. Last week my old Powerbook G4 suddenly stoped working because of some hdd error.
Today I told my 1 year old 24” iMac to shutdown and went away. When I returned it was still trying to shutdown but I couldn’t do anything except for resetting. After a reboot the horror was perfect because of this huge ? Symbol on the screen indicating that no hdd was found.
I was near crying
After running hardware test it told me there is an 4HDD/11/40000004 sata(0,0) error. ;(
Disk Utility told me that it couldn’t repair because of wrong disk permission and repair disk permission told me it couldn’t finish because of some unknown error ;(
I’ll now try to solve this with diskwarrior, tomorrow morning I’m going to buy some FireWire cable to try to rescue some of my data via target mode.
Wish me some luck, there’s too much work on it…
why is this happening, is there some kind if hardware destroying virus I’m infected with? A single person just can’t have so much bad luck

Every time I use terminal in combination with an ssh connection to a remote host and the execute screen I’m not able to use the backspace key.
Found a soultion in the comment section of atomized

just put the following line into your ~/.bash_login script

export TERM=xterm

fin

  1. create a file (e.g. cites.bib) that will contain the cites
  2. create a cite in cites.bib (you may use http://www.interaction-design.org/citation-maker/ as the simple solution)
    e.g.

    @misc{bibAndTex,
      AUTHOR = {cb0},
      TITLE = {BibTeX and LaTeX in TeXShop OS X},
      PUBLISHER = {cb0},
      ADDRESS = {Leipzig},
      YEAR = {2009},
    URL = {http://0xcb0.wordpress.com},
    note = {This is an electronic document. http://0xcb0.wordpress.com
               Date retrieved: Feburay 22, 2009. Date last modified: Feburay 22, 2009},
    url = {http://0xcb0.wordpress.com},
    }
  3. Insert the following 2 lines at the desired place of your bibliography
    \bibliography{cites}{}
    \bibliographystyle{plain}

    cite is the reference to the created cites.bib

  4. cite it somewhere
    \cite[see cb0's Blog]{bibAndTex}
  5. Save all changes
  6. set Latex
    bild-1
  7. set BibTeX
    setbib
    output should start with sth. like this
    bild-3
  8. 2 times step 6 for correct numbering of all cites
  9. look at the results
    citeintext

    the cite in the text

    bibliography

    the cite in the bibliography

  10. enjoy

Newer entries »