- Into the hidden page as "http://192.168.1.1/Main_AdmStatus_Content.asp".
- Type "utelnetd" in System Command.
- Telnet router.
- Type "wl radio off" to close the Wi-Fi function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, const char * argv[]) | |
{ | |
int left, offset=0; | |
char *target = "daniel&vivid<daniel>,\"vivid\'"; | |
char c, *dest; | |
const char *inp; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIAlertView *alert = ......... | |
alert.alertViewStyle = UIAlertViewStylePlainTextInput; | |
alert.delegate = (id)self; | |
alert.tag = 0; | |
UITextField *textField = [alertView textFieldAtIndex:0]; | |
textField.placeholder = @"Test"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Function 1, return true or false. | |
(/^[a-zA-Z0-9\.\_\-]*$/g.test(document.getElementById("id").value) | |
// Function 2, return 0 is normal. | |
document.getElementById("id").value.search(/[^0-9_]/) | |
//Check Email Format, return 0 is error. | |
// Rules: 1. Just 1 '@' | |
// 2. At least one '.' in the URL and can't 1 by 1 | |
// 3. No space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var multi_lang = document.form_lang.lang; | |
for (i=0; i<multi_lang.length; i++) | |
{ | |
if (multi_lang[i].value == lang) | |
multi_lang[i].checked=true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function form_check_any_modity() | |
{ | |
var form = document.forms[0]; | |
for (var i=0; i<form.elements.length; i++) | |
{ | |
var element = form.elements[i]; | |
var type = element.type; | |
//alert("type="+type); | |
//alert("element.disabled="+element.disabled); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replace_text_rule(str) | |
{ | |
str = str.replace(/</g, ''); | |
str = str.replace(/>/g, ''); | |
str = str.replace(/\"/g, ''); | |
str = str.replace(/^\s+/, ''); | |
return str; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv=Content-Type content="text/html; charset=utf-8"> | |
<script language="JavaScript"> | |
function test() | |
{ | |
var select = document.getElementById("test"); | |
for(i=select.options.length-1;i>=0;i--) | |
{ | |
select.remove(i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Try: | |
<frameset col"50%,*"> | |
<frame src="page1.htm"> | |
<frame src="page2.htm" name="otherFrameName"> | |
</frameset> | |
//Then in page1.htm: | |
<script language="JavaScript"> | |
parent.otherFrameName.functionName(); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/ioctl.h> | |
int main(int argc, const char * argv[]) | |
{ | |
FILE *fd; | |
char buf[96]; |
NewerOlder