Giter Club home page Giter Club logo

cacao's People

Contributors

michaelfig avatar mydnight avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hugeandbulk

cacao's Issues

Using a private device from a private web page on a mobile phone

i want to access a local device page from another page (192.168.1.2) on the same network but that device page doesn't have remote access so i can't use your tool. .... and using extensions won't work cause i want to test it on chrome phones app .... and i can't edit that local device page code .
i want to make a login script that works what ever local CORS Anywhere server was available or not !!

any ideas ?
i think this may be the fix but how can i make it available at local and public at the same time ?!
here is the code that i want to use
c0a80101.c0a80102.rbndr.us is 192.168.1.1 and 192.168.1.2 combined .
i want at the first response the answer be 192.168.1.2 and then when the internet connection is back
i want the second response to be 192.168.1.1 and the code get's executed only if it received the second response correctly !!

<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script> 
var http = new XMLHttpRequest();
var params = 'frashnum=&action=login&Frm_Logintoken="+results+"&Username=admin&Password=test';
var url = 'http://c0a80101.c0a80102.rbndr.us/';
http.open('POST', url, true);
//Send the proper header information along with the request
http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
 http.onload = function myfunction() {
let str = (http.responseText);
    alert(str)
    let pattern =/\bgetObj\("Frm_Logintoken"\)\.value = "([^"]+)";/;
    let results = console.log(str.match(pattern)[1]);
    return results;
    
 }; 
  var test = myfunction();
 document.write(test);
 http.send(params);
</script>
</body>
</html>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.