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
    
  
  
    
  | #!/bin/sh | |
| # SPDX-License-Identifier: GPL-2.0 | |
| # | |
| WAIT_DURATION=300 | |
| . /lib/functions.sh | |
| check_peer_activity() { | |
| local cfg=$1 | 
  
    
      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
    
  
  
    
  | //! triple des(3des) ecb pkcs5 padding encrypt/decrypt function for rust, use openssl crypto | |
| //! library. | |
| //! refer to <http://blog.csdn.net/lyjinger/article/details/1722570> | |
| //! coded by vinoca. | |
| //! 2017.11.24 | |
| #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] | |
| extern crate libc; | 
  
    
      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
    
  
  
    
  | #!/bin/sh | |
| # 版本一: | |
| # code by jm modified by youxi01 2006-12-3 CMD@XP | |
| # 出处:http://www.cn-dos.net/forum/viewthread.php?tid=25369 | |
| #title 读心术P处理版 | |
| #:begin | 
  
    
      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
    
  
  
    
  | #!/usr/bin/lua | |
| if #arg ~= 2 then | |
| print("Usage: wol.lua <broadcast> <mac>\n") | |
| os.exit() | |
| end | |
| local mac = '' | |
| for w in string.gmatch(arg[2], "[0-9A-Za-z][0-9A-Za-z]") do | |
| mac = mac .. string.char(tonumber(w, 16)) | 
  
    
      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 check (id) | |
| local error_code = { "The length of ID card number is not 18.", "ID card number is invalid.", | |
| "birthday is invalid.", "check code is invalid." } | |
| local month_day = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } | |
| local weight = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 } | |
| local check_code = { "1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2" } | |
| local year = tonumber(string.sub(id, 7, 10)) | |
| local month = tonumber(string.sub(id, 11, 12)) | |
| local day = tonumber(string.sub(id, 13, 14)) | 
  
    
      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
    
  
  
    
  | #!/bin/sh | |
| # sddns, a dnspod ddns client for OpenWrt | |
| # Written by vinoca, June 2012 | |
| # Distributed under the MIT License | |
| # | |
| # more visit www.vinoca.org | |
| VERSION=0.0.4 |