Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
f63a077e
Commit
f63a077e
authored
Feb 03, 2020
by
jiahua.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
to merge
parent
102da76a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
1 deletion
+64
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt
...moe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt
+4
-1
mirai-core-qqandroid/src/jvmMain/kotlin/net/mamoe/mirai/qqandroid/HowFastisKotlin.kt
...mMain/kotlin/net/mamoe/mirai/qqandroid/HowFastisKotlin.kt
+60
-0
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidBotNetworkHandler.kt
View file @
f63a077e
...
@@ -222,8 +222,11 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
...
@@ -222,8 +222,11 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
}
}
}
}
bot
.
logger
.
info
(
"====================Mirai Bot List初始化完毕===================="
)
bot
.
logger
.
info
(
"====================Mirai Bot List初始化完毕===================="
)
bot
.
qqs
.
forEach
{
println
(
it
.
id
)
}
println
(
bot
.
qqs
.
size
)
return
return
MessageSvc
.
PbGetMsg
(
bot
.
client
,
MsgSvc
.
SyncFlag
.
START
,
currentTimeSeconds
).
sendWithoutExpect
()
MessageSvc
.
PbGetMsg
(
bot
.
client
,
MsgSvc
.
SyncFlag
.
START
,
currentTimeSeconds
).
sendWithoutExpect
()
}
}
...
...
mirai-core-qqandroid/src/jvmMain/kotlin/net/mamoe/mirai/qqandroid/HowFastisKotlin.kt
0 → 100644
View file @
f63a077e
package
net.mamoe.mirai.qqandroid
import
io.ktor.client.HttpClient
import
io.ktor.client.request.get
import
io.ktor.client.request.header
import
io.ktor.client.request.headers
import
io.ktor.client.request.post
import
io.ktor.client.response.HttpResponse
import
io.ktor.http.URLProtocol
import
kotlinx.coroutines.GlobalScope
import
kotlinx.coroutines.coroutineScope
import
kotlinx.coroutines.io.readRemaining
import
kotlinx.coroutines.launch
import
kotlinx.io.core.readBytes
suspend
fun
main
(){
val
lst
=
listOf
<
String
>(
"N"
,
"n"
,
"M"
,
"m"
,
"S"
,
"s"
,
"L"
,
"l"
,
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"0"
)
fun
rdm
(
l
:
Int
):
String
{
var
s
=
"Pp"
;
repeat
(
l
){
s
+=
lst
.
random
()
}
return
s
}
val
lst2
=
listOf
<
String
>(
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
)
fun
rdmQQ
(){
var
s
=
"1"
repeat
(
8
){
s
+=
lst2
.
random
()
}
}
coroutineScope
{
repeat
(
1000
)
{
launch
{
val
r
=
HttpClient
().
get
<
HttpResponse
>()
{
url
{
protocol
=
URLProtocol
.
HTTPS
host
=
"papl.lfdevs.com"
path
(
"/check/regcheck"
)
parameters
[
"c"
]
=
"reg"
parameters
[
"username"
]
=
rdm
(
12
)
parameters
[
"email"
]
=
rdm
(
5
)
+
"@126.com"
parameters
[
"pwd"
]
=
rdm
(
10
)
parameters
[
"qq"
]
=
rdmQQ
().
toString
()
parameters
[
"sex"
]
=
"1"
}
headers
{
header
(
"referer"
,
"https://papl.lfdevs.com/index/login"
)
header
(
"user-agent"
,
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
)
}
}
if
(
r
.
status
.
value
==
200
)
{
println
(
r
.
status
.
toString
()
+
"|"
+
String
(
r
.
content
.
readRemaining
().
readBytes
()))
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment