日本における業法の守備範囲は以下の通り
- 割賦販売法・・・クレジットカード
- 貸金業法・・・キャッシングやカードローンなどの金融商品
所轄官庁は、クレジットカードが経済産業省、金融商品が金融庁
割賦販売法では以下の通り定義されている
- クレジットカードを使ったショッピング・・・包括信用購入あっせん
| Use TCPDUMP to Monitor HTTP Traffic | |
| 1. To monitor HTTP traffic including request and response headers and message body: | |
| tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | |
| 2. To monitor HTTP traffic including request and response headers and message body from a particular source: | |
| tcpdump -A -s 0 'src example.com and tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | |
| 3. To monitor HTTP traffic including request and response headers and message body from local host to local host: |
| public class SSLProtocolTests { | |
| public static void main(String[] args) throws Exception { | |
| SSLContext context = SSLContext.getDefault(); | |
| SSLSocketFactory factory = (SSLSocketFactory)context.getSocketFactory(); | |
| SSLSocket socket = (SSLSocket)factory.createSocket(); | |
| String[] protocols = socket.getSupportedProtocols(); | |
| System.out.println("Supported Protocols: " + protocols.length); | |
| for(int i = 0; i < protocols.length; i++) |
| public class SSLProtocolTests { | |
| public static void main(String[] args) throws Exception { | |
| SSLContext context = SSLContext.getInstance("TLSv1.2"); | |
| context.init(null,null,null); | |
| SSLSocketFactory factory = (SSLSocketFactory)context.getSocketFactory(); | |
| SSLSocket socket = (SSLSocket)factory.createSocket(); | |
| String[] protocols = socket.getSupportedProtocols(); |
| \n | |
| ============= HOST: ==========\n | |
| \n | |
| local_ip: %{local_ip}\n | |
| local_port: %{local_port}\n | |
| remote_ip: %{remote_ip}\n | |
| remote_port: %{remote_port}\n | |
| \n | |
| ======= CONNECTION: ==========\n | |
| \n |
| package net.hausherr.sample; | |
| import org.apache.http.client.CookieStore; | |
| import org.apache.http.conn.routing.HttpRoute; | |
| import org.apache.http.conn.routing.HttpRoutePlanner; | |
| import org.apache.http.conn.scheme.PlainSocketFactory; | |
| import org.apache.http.conn.scheme.Scheme; | |
| import org.apache.http.conn.scheme.SchemeRegistry; | |
| import org.apache.http.conn.ssl.SSLSocketFactory; | |
| import org.apache.http.conn.ssl.TrustStrategy; |
| import java.util.Random; | |
| /** | |
| * A credit card number generator. | |
| * | |
| * @author Josef Galea | |
| */ | |
| public class CreditCardNumberGenerator { | |
| private Random random = new Random(System.currentTimeMillis()); |