Skip to content

nICEnnnnnnnLee/NinjaV4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

😄前言

收录了一些日常用的功能,Android旧手机服务器+Linux小鸡两用。
yoooooooooooo~

😄能做什么

功能 支持情况
查看WiFi邻居 jar/dex
录制B站/斗鱼/虎牙/快手直播 jar/dex
通过Github中转推拉信息 jar/dex
QQ信息收发(配合酷Q) 基于酷Q
邮件发送 jar/dex
斗鱼养粉丝牌 jar/dex
斗鱼鱼塘任务奖品领取 jar/dex
斗鱼鱼吧每日签到 jar/dex
斗鱼客户端每日签到 jar/dex
斗鱼车队每日签到 jar/dex
斗鱼登录(扫二维码获取cookie) jar/dex
微信计步作弊 jar/dex
通过id查询磁力 jar/dex

😄如何使用

  • UTF-8编码方式运行jar/dex包即可,举例:
java -Dfile.encoding=utf-8 -jar ninjaV4.jar  
dalvikvm -cp ninjaV4.dex nicelee.server.MainServer  
// 或者nohup ...
nohup dalvikvm -cp ninjaV4.dex nicelee.server.MainServer >/dev/null 2>&1 &
  • 请务必注意配置文件的相应配置
    此处列有相应配置

  • 关于dex包

    • Android的虚拟Linux环境内dalvikvm与常见jvm存在差异(除非你再套一层,使用jvm)
    • Android熄屏后定时操作存在问题
    • 此处-Android手机当服务器有所补充

😄功能举例

同一局域网内

假设手机IP为:192.168.0.101
浏览器访问http://192.168.0.101:8888/,可以得到如下结果:

根据提示操作即可。
例如直播录制测试状态查询:

远程操作
  • 查看家内的WiFi连接状态
    也就是终端收集Wifi连接信息,然后上传,在Github对应的Repo路径查看即可

  • 让家内的Android设备执行某些特定操作

    • 因为是每5分钟取一次,有一定延迟。
    • 编辑配置指定好的位置的文件,如task/todo.txt
  • 任务格式说明

    • 任务编号: 需要严格递增,编号超过99999以后从0开始
    • 计划时间: 假设18:15,18:20各取一次任务,企划在18:18,18:19的任务都将在18:20左右执行,且执行顺序没法确定
    • 命令内容: 与局域网内各命令的网址URL一致,例如:
      • 录制b站某主播: /live/start?liver=bili&id=6&qn=10000
      • 录制斗鱼某主播: /live/start?liver=douyu&id=233223&qn=0
      • 停止所有录制: /live/stopAll
      • 更新WiFi设备连接状态: /onliner/status/upload
任务编号 计划时间 命令内容
1 2019-09-16 14:14 /test
2 2019-09-16 14:14 /cloud/history/delete
3 2019-09-17 18:18 /onliner/status/upload
4 2019-09-17 18:19 /onliner/status/upload
5 2019-09-17 18:45 /onliner/status/upload
6 2019-09-17 20:46 /onliner/status/upload

😄如何扩展DIY

  • nicelee.server.controller下建立方法解决类,并加上注解@Controller
  • 在处理访问请求时,将会自动调用与URL一致的方法,并自动传入URL里面的参数
  • 更详细请见 处理都在Controller的弱鸡服务器
举例
package nicelee.server.controller;

import java.io.BufferedWriter;
import java.io.IOException;

import nicelee.common.annotation.Controller;
import nicelee.common.annotation.Value;

@Controller(path = "/test", note = "测试类")
public class ControllerTester {

	@Controller(path = "/helloWorld", note = "Hello World处理方法1")
	public String test1(BufferedWriter out, @Value(key = "param1") String param1) throws IOException {		
		out.write("调用的方法为:helloWorld<br/>\r\n");
		out.write("传入的参数param1 :" + param1);
		return null;
	}
    
	@Controller(path = "/helloWorld2", note = "Hello World处理方法2")
	public String test2(@Value(key = "param1") String param1) throws IOException {
		StringBuffer sb = new StringBuffer();
		sb.append("调用的方法为:helloWorld<br/>\r\n");
		sb.append("传入的参数param1 :");
		sb.append(param1);
		return  sb.toString();
	}
}

😄实现功能的参考引用

😄第三方使用声明

  • 使用JSON.org库做简单的Json解析
  • 使用Crypto-js仿浏览器生成斗鱼直播录制token
  • 使用Rhino库在斗鱼直播录制生成token时调用了js
  • 使用JavaMail发送邮件
  • 使用qrcodejs库生成链接二维码图片

😄更新日志

UPDATE.md

😄LICENSE

Copyright (C) 2019 NiceLee. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

我的百宝箱 - 微信计步作弊/远程监控家里WiFi/录制直播/QQ复读机器人/斗鱼日常养粉丝牌

Topics

Resources

License

Stars

Watchers

Forks

Languages