Created
November 27, 2016 03:08
-
-
Save 1178615156/ee5687b77fb4caaf509450b0a1c24cd7 to your computer and use it in GitHub Desktop.
SortByName
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
import com.typesafe.config.ConfigFactory | |
import play.api.libs.json.JsValue | |
import zjsnr.{Fleet, PvpFriend, ZJSN} | |
import scala.io.Source | |
import scala.collection.JavaConversions._ | |
import utensil.JsonTrans._ | |
import scala.collection.parallel.ForkJoinTaskSupport | |
import scala.util.Random | |
import scalaj.http.Http | |
/** | |
* Created by yujieshui on 2016/9/8. | |
*/ | |
object Test { | |
val random = new Random() | |
def a() = { | |
val r = | |
Http("http://login.jr.moefantasy.com/index/passportLogin/") | |
.header("gz", "0") | |
.postForm(Seq( | |
"username" -> s"a${random.nextInt()}", | |
"pwd" -> s"${random.nextInt()}") | |
).asString | |
println(r.body) | |
} | |
def b() = { | |
val r = | |
Http(s"http://login.jr.moefantasy.com/index/passportReg/${random.nextLong()}/${"ab" * 10}////") | |
.asString | |
println(r.body) | |
} | |
//3638239 | |
//3684600 | |
//"userLoginId":"6008192861669052051","pwd":"abababababababababab" | |
def main(args: Array[String]): Unit = { | |
a() | |
b() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment