海运的博客

linux通过fping扫描整个网段在线主机

发布时间:January 19, 2018 // 分类: // No Comments

yum install fping
fping -agq 192.168.168.0/24

Linux判断内核版本自动开启bbr或锐速

发布时间:January 18, 2018 // 分类: // No Comments

添加到/etc/rc.local开机启动:

#!/usr/bin/bash
version=`uname -r|awk -F'.' '{print $1}'`
if [ $version == "3" ]
then
  echo "version is 3"
  /etc/init.d/serverSpeeder start
else 
  echo "version is 4"
  sysctl -w "net.core.default_qdisc=fq" 
  sysctl -w "net.ipv4.tcp_congestion_control=bbr"
fi

Windows开机启动vmware虚拟机

发布时间:January 17, 2018 // 分类: // No Comments

创建vbs脚本放到开机启动目录:

set ws=createobject("wscript.shell")
ws.run """C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe"" start ""d:\Virtual Machine\Vmware VMs\Windows 10 x64\Windows 10 x64.vmx"" nogui",0
wscript.quit

Windows10开机启动目录位于:

%appdata%\Microsoft\Windows\Start Menu\Programs\Startup

php通过parity发送eth转账

发布时间:December 24, 2017 // 分类: // 1 Comment

<?php
$from = "0xc562B9310436D9fA01ED015E48145";
$to = "0xAAAB2eC23dd5dd9602e631B8399fA94";
$gas_price = "0x800e8dfc00";
$gas_limit = "0x01d4c0";
$value = "0x018493fba64ef00000";
$data = '{"method":"personal_sendTransaction","params":[{"from":"'.$from.'","to":"'.$to.'","gas": "'.$gas_limit.'", "gasPrice": "'.$gas_price.'","data":"","value":"'.$value.'"},"password"],"id":1,"jsonrpc":"2.0"}';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'localhost:8545');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$data = curl_exec($ch);
print_r($data);
curl_close($ch);
分类
最新文章
最近回复
  • simon: 刚刚看了我的vps,玛德,居然也有人在一直尝试登录,幸好我的密码是强密码
  • thornbird: 又学会一招,不错
  • 头很黑: 除了发送eth转账 ,还能转账其他的代币吗 比如eos
  • 米扑博客: 总结的很棒
  • 米扑博客: 很赞的博客
  • 常易北: 满分顶楼主!!!我也是,现在网上瞎几把扫别人云主机的智障太多了!
  • track: NAT 部分没处理,这块感觉有问题。
  • yu: 查到有用的资料很幸福!
  • boscotsang: 请问下服务器端如何控制权限让通过权限认证的客户端才能连接?现在这样只要有自编译的客户端程序都可...
  • yck932: 大侠,请问哪里有 tunnels 详细参考资料,谢谢
归档
友情链接