Guest User

CIB Internet Bank non-applet script

a guest
Feb 20th, 2013
374
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. dir="`dirname $0`"
  4.  
  5.    cat > $dir/AppletLocal.html <<EOF
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" style="overflow: hidden">
  8. <head>
  9. <title> CIB Internet Bank </title>
  10. </head>
  11. <body style="overflow: hidden;margin: 0px">
  12.  
  13. <applet name="mainApplet" code="ebank.applet.MainApplet" width="800" height="600" mayscript archive="cibib.jar">
  14. <param name="CABBASE" value="https://cibib.cab">
  15. <param name="default_fontsize" value="11">
  16. <param name="PACKED" value="TRUE">
  17. <param name="java_arguments" value="-Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false">
  18. <param name="separate_jvm" value="true">
  19. <param name="centerimage" value="true">
  20. <param name="boxborder" value="false">
  21. <param name="image" value="loader_hu.gif">
  22. <param name="MAYSCRIPT" value="true">
  23. <param name="BASEVIEW" value="1">
  24. <param name="LOGLEVEL" value="50">
  25. <param name="PROTOCOL" value="https">
  26. <param name="SERVERURL" value="https://ibank.cib.hu/IBWBGateway/IBGatewayServlet">
  27. <param name="PRINTERURL" value="https://ibank.cib.hu/IBWBGateway/IBPrintingServlet">
  28. <param name="LANGUAGE" value="hu">
  29. <param name="INITWIDTH" value="800">
  30. <param name="INITHEIGHT" value="600">
  31. </applet>
  32.  
  33. <!-- <param name="DEMOMODE" value="TRUE"> -->
  34.  
  35.     <script>
  36.  
  37. window.onerror = myErrorHandler;
  38.  
  39. function help(pageName)
  40. {
  41.     help_window = window.open(pageName, "help", "toolbar=0,location=0,resizable=0,status=0,menubar=0,scrollbars=0,hotkeys=1,fullscreen=0,width=500,height=380,marginheight=0,marginwidth=0,dependent=1");
  42.     help_window.focus();
  43. }
  44.  
  45. function printWindow(text)
  46. {
  47.     msgWindow=window.open("","_blank", "toolbar=1,location=0,resizable=1,status=1,menubar=1,scrollbars=1,fullscreen=0");
  48.     msgWindow.document.open("text/html", "replace");
  49.     msgWindow.document.write(text);
  50.     msgWindow.document.close();
  51. }
  52.  
  53. function saveWindow(text)
  54. {
  55.     msgWindow=window.open("","_blank", "toolbar=1,location=0,resizable=1,status=1,menubar=1,scrollbars=1,fullscreen=0");
  56.     msgWindow.document.open("text/plain", "replace");
  57.     msgWindow.document.write(text);
  58.     msgWindow.document.close();
  59. }
  60.  
  61. function myErrorHandler(msg, url, linenumber)
  62. {
  63.     alert(msg + ' at line: ' + linenumber);
  64.     return true;
  65. }
  66.  
  67.     </script>
  68. </body>
  69. </html>
  70. EOF
  71.  
  72. echo 'grant { permission java.security.AllPermission; };' > $dir/cibib.policy
  73.  
  74. curl -s https://ibank.cib.hu/cibib.jar > $dir/cibib.jar
  75.  
  76. appletviewer $dir/AppletLocal.html -J-Djava.security.policy=$dir/cibib.policy > /dev/null &
RAW Paste Data