https://full-count.jp/2019/06/04/post396727/

動画としてはとてもよかった。あんまりおもしろくないロッテの挑発ポスターよりとてもよい。

 

ただ個人的にはセリーグに興味がないので、この動画が面白い、という以上でも以下でもなく、煽るつもりもないです。「あ、野球やってる」と言う意味で試合を見る意味では、メジャーも韓国も台湾もセも私にとってはあまり変わらないです…

Handling ASP.NET MVC’s Anti-Forgery Tokens when load testing with JMeter

JMeterでクッキー使うときにクッキーマネージャかませばいいんだけど、ASP.NETのときに正規表現フィルタでRequestVerificationTokenの値を取って埋める必要がありまっせと言う話。

https://buildmeasurelearn.wordpress.com/2016/11/23/handling-asp-net-mvcs-anti-forgery-tokens-when-load-testing-with-jmeter/

Some key points to note:

  • The Reference Name field names the variable that we will then reference in the POST request we make to login.
  • The Regular Expression field tells JMeter that we want to extract the value from the string using:
name="__RequestVerificationToken" type="hidden" value="([A-Za-z0-9+=/\-\_]+?)"

csrをOpenSSLから発行して、そのあとkeystoreが欲しくなった際のやりかた

# openssl pkcs12 -export -in crtファイル -inkey 秘密鍵ファイル -out keystore.pkcs12 -name "hogehoge"
で、パスワード"fugafuga"入力

# keytool -importkeystore -srckeystore さっき作成したkeystore.pkcs12 -destkeystore 出力するkeystore -srcstoretype pkcs12 -deststoretype jks -deststoretype jks -destalias "hogehoge" -destkeypass "fugafuga"

 

ひとまず、OpenSSLをどこかにインスコしておきましょう。

ASP.NETで<script>とか打ってもアプリ側でvalidateさせる方法

http://kyoujinse.blog83.fc2.com/blog-entry-18.html

Web.configに記載する。

  1. <system.web>  
  2.   <pages validateRequest="false" />  
  3.   <httpRuntime requestValidationMode="2.0" />  

ですってよ。