Advertisement
labyrinth-servers1

SecureBrowser

Mar 27th, 2019
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.71 KB | None | 0 0
  1. #!/usr/bin/ruby
  2. =begin
  3. Labyrinth Copyright (C) 2018 Grathium Sofwares <grathiumsoftwears@gmail.com>
  4. This program comes with ABSOLUTELY NO WARRANTY
  5. This is a free software, and you are welcome to redistribute it under certain
  6. conditions.
  7. =end
  8.  
  9. require 'webrick'
  10. require 'webrick/https'
  11.  
  12. cert_name = [
  13.   %w[CN localhost],
  14. ]
  15.  
  16. server = WEBrick::HTTPServer.new(
  17.     :Port => 8443,
  18.     :SSLEnable => true,
  19.     :SSLCertName => cert_name
  20. )
  21.  
  22. server.mount_proc '/CzzveexUHcn1N.lab' do |req, res|
  23.   res.body = '  <!doctype html>
  24.  
  25. <html>
  26. <head>
  27. <title>Encrpyred Search</title>
  28. <style>
  29. ul {
  30.  list-style-type: none;
  31.  margin: 0;
  32.  padding: 0;
  33.  overflow: hidden;
  34.  background-color: #333;
  35. }
  36. li {
  37.  float: left;
  38. }
  39. li a {
  40.  display: block;
  41.  color: white;
  42.  text-align: center;
  43.  padding: 14px 16px;
  44.  text-decoration: none;
  45. }
  46. /* Change the link color to #111 (black) on hover */
  47. li a:hover {
  48.  background-color: #111;
  49. }
  50. h1#top-message {
  51.     position: absolute;
  52.     left: 41%;
  53.     top: -18px;
  54. }
  55. html {
  56.     background-repeat: no-repeat;
  57.     background-size: contain;
  58.     background-size: 100%;
  59. }
  60. iframe {
  61.     position: absolute;
  62.     border: none;
  63.     width:100%;
  64.     height: 90%;
  65. }
  66. iframe:focus {
  67.  outline: none;
  68. }
  69. iframe[seamless] {
  70.  display: block;
  71. }
  72. .footer {
  73.  position: fixed;
  74.  left: 0;
  75.  bottom: 0;
  76.  width: 100%;
  77.  background-color: #323232;
  78.  color: white;
  79.  text-align: center;
  80. }
  81. html, body {margin: 0; height: 100%; overflow: hidden}
  82. .dropdown {
  83.  position: relative;
  84.  display: inline-block;
  85. }
  86. .dropdown {
  87.     position: absolute;
  88.     top: 14px;
  89.     color: white;
  90.     padding-left: 18px;
  91. }
  92. .dropdown-content {
  93.  display: none;
  94.  position: absolute;
  95.  background-color: #2f2f2f;
  96.  min-width: 160px;
  97.  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  98.  padding: 1px 16px;
  99.  z-index: 1;
  100.  color: #D3D3D3;
  101.    border-top: solid;
  102.  border-width: 1px;
  103.  border-top-color: #A9A9A9;
  104. }
  105. .dropdown:hover .dropdown-content { display: block; }
  106. .dropdown-item:hover {
  107.     background-color: black;
  108. }
  109. p a {
  110.  display: block;
  111.  color: #D9D9D9;
  112.  text-align: left;
  113.  text-decoration: none;
  114. }
  115. p a:hover {
  116.     color: white;
  117. }
  118. </style>
  119.  
  120. <h1 id="top-message" style="color:#f2f2f2">[Encrpyred Search]</h1>
  121.  
  122. <ul><u>
  123.  <li><a href="#" onclick="home();">Home</a></li>
  124. </ul></u>
  125. <head>
  126.  
  127. <body>
  128. <iframe id="uvKfjbuR9RqZiQthWuef" style="position: absolute;width:100%;height:95.2%;left:0px;" class="viewbox" src="https://www.bing.com"></iframe>
  129. </body>
  130.  
  131. <script>
  132. function home() {
  133. document.getElementById("uvKfjbuR9RqZiQthWuef").src = "https://www.bing.com";
  134. }
  135. </script>
  136. </html>'
  137. end
  138.  
  139. system "cls"
  140. puts "Client Ready!"
  141. system 'start chrome.exe --incognito "https://localhost:8443/CzzveexUHcn1N.lab"'
  142. server.start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement