Pages

Showing posts with label java script. Show all posts
Showing posts with label java script. Show all posts

Tuesday, February 13, 2018

Fedora 27 : Test browsers for inline security.

Open the browser with this page: https://github.com.
Next step is to open the Developer Tools console.
If you use Opera then you can use this keys: Ctr+Shift +C .
If you use Firefox or Chrome browsers use F12 key.
Paste the following code into the console area to create a new inline script and add this java script:
var test = document.createElement('script');
test.innerText = 'alert("hi there");'
document.body.appendChild(test);
For example, this is a good security result on my Opera browser.

The result of this message tell us about the script we tried to execute was stopped by the browser.

Monday, January 4, 2016

News: Tutorials with node.js and jpm.

Dear friends,
... today I started a new series of tutorials.
The subject from this is firefox add-ons with node.js.
Into this tutorial, we can see the first steps to make one unsigned default addon.
I used Windows OS, but also you can install under Linux OS easy node.js.
Most of Linux users can know how to do it.
The first tutorial is here.
Thank you. Best regards.

 



Tuesday, February 11, 2014

Simple HTML5 script and google map.

Today I found one old html script ( few ages ago ). In the past I worked with html5 and this is simple example I make it.
The 'simple script and can be use with any features of google API.
About Google API you can learn more from developers google maps.
Let's see this script :
<html>
<head>

<style type="text/css">
  html { height: 100% }
  body { height: 100%; margin: 10px; padding: 10px }
  #map_canvas { height: 50% }
</style>
<script src="//maps.google.com/maps/api/js?sensor=true" type="text/javascript">
</script>
<script type="text/javascript">
  function initialize() {
    var latlng = new google.maps.LatLng(33, 16);
    var myOptions = {
      zoom: 2,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.TERRAIN 
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);
  }

</script>
</head>
<body onload="initialize()">
  <div id="map_canvas" style="height: 50%; width: 100%;">
</div>
</body>
</html>