This file contains 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/bash | |
HOST=`hostname` | |
INTERFACE=eth0 | |
DUMPDIR=./dump/ | |
SUBJECT="WARNING: Packet alert on $HOST" | |
EMAIL="[email protected]" | |
EMAILMESSAGE="./dump/emailmessage.txt" | |
LOG="./dump/log.txt" |
This file contains 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
/* run this program using the console pauser or add your own getch, system("pause") or input loop */ | |
#include <iostream> | |
#include <windows.h> | |
#include <stdio.h> | |
#include <conio.h> | |
#include <fstream> | |
#include <io.h> | |
//控制字定义 | |
#define BLOCK0_EN 0x01 |
This file contains 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 | |
# Worked in CentOS 7. | |
for ip in 10.1.41.106 10.1.41.158 10.1.41.149 10.1.41.104 10.1.41.145 10.1.41.122 10.1.41.113 10.1.41.223 10.1.41.200; do | |
timeout 1 bash -c "echo >/dev/tcp/${ip}/22" && | |
echo "$ip SSH is OPEN" || | |
echo "$ip SSH is $(tput setaf 1)CLOSED$(tput sgr0)" | |
done |
This file contains 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
<?php | |
// $url_login = "http://192.168.1.6/weboa/sys/logon.aspx?stferNo=200&stferPassword=hehehe"; | |
$url = "http://http://zhiye.jiaoshi.com.cn//admin/deal_vote.php?pid=49&type=1"; | |
$file="cookie.txt"; | |
echo postPage($url, "$postfields"); |
This file contains 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/bash | |
for (( ; ; )) | |
do | |
wget -m http://www.youobd2.com | |
sleep 1h | |
done |
This file contains 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 | |
# Put this script run in crond. | |
service=ocserv | |
if test $(netstat -na | grep 0.0.0.0:443 | wc -l) = 2 | |
then | |
echo "$service is running!" | |
else | |
/etc/init.d/$service start |
This file contains 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/php | |
<?php | |
$terms = [ | |
"LTE" => "Long Term Evolution", | |
"SAE" => "System Architecture Evolution", | |
"E-UTRAN" => "Evolved Universal Terrestrial Radio Access Network", | |
"EPC" => "Evolved Packet Core", | |
"EPS" => "Evolved Packet System", |
This file contains 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/php | |
<?php | |
$terms = [ | |
"OFDM的英文全称为" => "Orthogonal Frequency Division Multiplexing", | |
"OFDMA的英文全称为" => "Orthogonal Frequency Division Multiplexing Access", | |
"LTE中子载波的频率间隔是" => "15KHz", | |
"一个OFDM的符号周期(不包含CP)是多少μs(精确到小数点后两位)" => "66.67", | |
"OFDM中的O的中文含义是" => "正交", | |
"PRB的英文全称为" => "Physical Resource Block", |
This file contains 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/php | |
<?php | |
$terms = [ | |
"腾讯地图API Key的长度是多少个字符(包括减号)" => "35", | |
"https://apis.map.qq.com/ws/staticmap/v2/?center=22.74,114.229&zoom=10&size=600*300&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|22.74,114.229&key=MXLBZ-AZT3W-2JWRR-RMKHZ-NRDWH-QEBU4,如上API为腾讯地图API的哪个产品" => "静态图API", | |
"https://apis.map.qq.com/ws/staticmap/v2/?center=22.74,114.229&zoom=10&size=600*300&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|22.74,114.229&key=MXLBZ-AZT3W-2JWRR-RMKHZ-NRDWH-QEBU4,如上API获取的图片宽度为" => "600px", | |
"https://apis.map.qq.com/ws/staticmap/v2/?center=22.74,114.229&zoom=10&size=600*300&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|22.74,114.229&key=MXLBZ-AZT3W-2JWRR-RMKHZ-NRDWH-QEBU4,如上API获取的图片高度为" => "300px", | |
"https://apis.map.qq.com/ws/staticmap/v2/?center=22.74,114.229&zoom=10&size=900*600&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|22.74,114.229&key=MXLBZ-AZT3W-2JWRR-RMKHZ-NRDWH-QEBU4,如上API获取的图片宽度为" => "900px", | |
"https://apis.map.qq.com/ws/staticmap/v2/?center= |
This file contains 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/php | |
<?php | |
$terms = [ | |
"下行物理过程有几个" => "5", | |
"上行物理过程有几个" => "4", | |
"手机开机,会马上涉及到什么物理过程" => "小区搜索过程", | |
"小区切换,会涉及到什么物理过程" => "小区搜索过程", | |
"小区切换,会涉及到什么物理过程" => "小区搜索过程", | |
"UE开机经历了小区搜索过程,随机接入过程后,有其他UE向其拨号,首先会发生什么过程" => "寻呼过程", |