Eikonal Blog

2012.02.14

OpenSSL

  • HTTPS server banner:

      openssl s_client -connect:IPAddress:443

    after connection is established, type in “HEAD / HTTP/1.0” and press enter.

    Alternative:

      echo -e "HEAD / HTTP/1.0\n\n" | openssl s_client -quiet -connect IPAddress:443

  • NTTPS server banner

      openssl s_client -connect:IPAddress:563
      

  • IMAPS server banner:

      openssl s_client -connect:IPAddress:993
      

  • POP3S server banner:

      openssl s_client -connect:IPAddress:995
      

  • Identifying SSL cyphers:

      openssl s_client -connect website:443 -cipher EXPORT40
      openssl s_client -connect website:443 -cipher NULL
      openssl s_client -connect website:443 -cipher HIGH
      

  • Generating password hash four unix:

      openssl passwd -1 -salt QIGCa pippo
      

    output: $1$QIGCa$/ruJs8AvmrkmzKTzM2TYE.

  • Converting a PKCS12-encoded (or .pfx) certificate to PEM format:

      openssl pkcs12 -in CertFile.p12  -out NewCertFile.pem   -nodes. -cacerts
      

  • Converting a DER-encoded certificate to PEM format:

      openssl x509  -in CertFile.crt.  -inform DER  -out NewCertName.pem   -outform PEM
      

  • Download a proxy’s public certificate:

      openssl s_client-connect ProxyHostname:port   proxycert.pem
      

  • Create a key:

      openssl genrsa -des3 -out server.key 1024
      

  • Create a CSR (certificate signing request):

      openssl req -new -key server.key -out server.csr
      

  • Remove a password from a key:

      cp server.key server.key.org
      openssl rsa -in server.key.org -out server.key
      

  • Sign the CSR and create the certificate:

      openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
      cat server.crt server.key > certificate.pem
      

  • Encrypting a file:

      cat INFILE | openssl aes-256-ecb -salt -k PASSWORD > INFILE.ssl
      

  • Decrypting a file:

      cat INFILE.ssl | openssl aes-256-ecb -d -k PASSWORD > INFILE
      

2011.06.20

Web applications

Mozilla Prism (aka WebRunner) & Chromeless

Embedded IE


Related here: HTML5 – https://eikonal.wordpress.com/2011/03/04/html5/ | Scripting user interfaces – https://eikonal.wordpress.com/2010/07/22/scripting-user-interfaces/

2011.03.04

HTML5

Filed under: tools, web tools — Tags: , , , , , — sandokan65 @ 13:47

Test sites that support HTML5

Conversion tools

2011.02.10

File systems over anything

Filed under: Uncategorized, web tools — Tags: , , — sandokan65 @ 16:25

2010.07.22

Scripting user interfaces

Filed under: web tools — Tags: , , , , , — sandokan65 @ 13:32

Browser scripting:

2010.07.06

googlecl

Filed under: scripting, web tools — Tags: — sandokan65 @ 16:50

A tool that instruments some of the Google services to the unix command line.


Installation:


Examples

Following list is taken verbatim from the project page (http://code.google.com/p/googlecl/wiki/ExampleScripts). Idea is to grow this list as I find further tricks with this toolkit. Here it goes::

  • Blogger:
    • google blogger post –tags “GoogleCL, awesome” –title “Test Post” “I’m posting from the command line”
    • google blogger post blogpost.txt
    • google blogger list title,url-site # List posts
    • google blogger delete –title “Test Post”
    • google delete –title “Silly post number [0-9]*” # Delete posts matching regex
    • google tag –title “Dev post” –tags “Python, software” # label an existing post
  • Calendar:
    • google calendar add “Dinner party with George today at 6pm” # add event to calendar
    • google calendar today # List events for today only.
    • google calendar list –date 2010-06-01,2010-06-30 # List events.
    • google calendar delete –title “Dinner party with George” # Delete an event.
    • google calendar today list –cal .* | egrep ‘\[.*\]’ # List all calendars
  • Contacts:
    • google contacts add “J. Random Hacker, jrandom@example.com”
    • google contacts list name,email –title “J. Random Hacker”
    • google contacts delete –title “J. Random Hacker”
  • Docs:
    • google docs delete –title “Evidence”
    • google docs list title,url-direct –delimiter “: ” # list docs
    • google docs upload the_bobs.csv ~/work/docs_to_share/*

    gdata-python-client >= 1.3.0 ONLY:

    • google docs edit –title “Shopping list” –editor vim
    • google docs get –title “Homework [0-9]*”
  • Picasa:
    • google picasa create –title “Vermont Test” –tags Vermont vermont.jpg
    • google picasa get –title “Vermont Test” /path/to/download/folder
    • google picasa list title,url-direct –query “A tag”
    • google picasa post –title “Vermont Test” ~/old_photos/*.jpg # Add to an album
    • google picasa tag –title “Vermont Test” –tags “places”
    • google picasa delete –title “Vermont Test” # delete entire album
  • Youtube:
    • google youtube post –category Education –devtags GoogleCL killer_robots.avi
    • google youtube delete –title “killer_robots.avi”
    • google youtube list # list my videos
    • google youtube tag -n “.*robot.*” –tags robot

2010.01.28

Bookmarklets

Filed under: web tools — Tags: , , , , , — sandokan65 @ 15:24

The most useful bookmarklets:

  • Wayback archive bookmarklet (http://www.archive.org/web/web.php):
    javascript:location.href='http://web.archive.org/web/*/'+document.location.href;
    
  • TinyURL bookmarklet (Source: http://tinyurl.com/#toolbar):
    javascript:void(location.href='http://tinyurl.com/create.php?url='+location.href)
    
  • All-In-One Video bookmarklet: http://1024k.de/bookmarklets/video-bookmarklets.html
  • WordPress.com PressThis bookmarklet:
    javascript:
    var d=document, w=window, e=w.getSelection, k=d.getSelection, x=d.selection,
    var s=(e?e():(k)?k():(x?x.createRange().text:0)),
    var f='https://eikonal.wordpress.com/wp-admin/press-this.php',
    var l=d.location, e=encodeURIComponent, 
    u=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=4';
    
    a=function(){
       if (!w.open(u,'t','toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570'))
            l.href=u;
       };
       if (/Firefox/.test(navigator.userAgent))
           setTimeout(a,0);
       else
         a();
         void(0)
    

Articles


Library

  • Encipher.It – AES Text encryptor for Google Mail or anything else – https://encipher.it/:
    • Code:
        javascript:(
        function(){
         document.body.appendChild(document.createElement('script')).src='https://encipher.it/javascripts/inject.v2.js';
        }
        )();
        
    • “How To Encrypt Your Gmail & Facebook Messages” by Steve Campbell (MakeUseOf; 2011.09.13) – http://www.makeuseof.com/tag/encrypt-gmail-facebook-messages/
  • GmailThis! bookmarklet (2010.09.10):
    javascript:
    popw='';
    Q='';
    x=document;
    y=window;
    if(x.selection)%20{Q=x.selection.createRange().text;}
    %20else%20if%20(y.getSelection)%20{Q=y.getSelection();}
    %20else%20if%20(x.getSelection)%20{Q=x.getSelection();}
    popw%20=%20y.open('https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=&
    su='%20+%20escape(document.title)%20+%20'&body='%20+%20escape(Q)%20+%20escape('\n')%20+%20escape(location.href)%20+%20'&
    zx=RANDOMCRAP&
    shva=1&
    disablechatbrowsercheck=1&
    ui=1','gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');
    if%20(!document.all)%20T%20=%20setTimeout('popw.focus()',50);void(0);
    
  • GmailThis! bookmarklet (old):
    javascript:
    popw='';
    Q='';
    x=document;
    y=window;
    if(x.selection)%20{Q=x.selection.createRange().text;}
    %20else%20if%20(y.getSelection)%20{Q=y.getSelection();}
    %20else%20if%20(x.getSelection)%20{Q=x.getSelection();}
    popw%20=%20y.open('https://mail.google.com/mail?view=cm&tf=0&to=&
    su='%20+%20escape(document.title)%20+%20'&body='%20+%20escape(Q)%20+%20escape('\n')%20+%20escape(location.href),'gmailForm',
    'scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');
    if%20(!document.all)%20T%20=%20setTimeout('popw.focus()',50);void(0);
    

Blog at WordPress.com.