Tag: 欺骗

从Java中的特定IP生成HttpRequest

我正在使用Apache HttpClient生成Post请求并提交数据。 由于远程应用程序在提交数据的用户的IP地址上进行中继,因此我想发送用户指定IP地址的发布请求。 我该如何配置? public static void loginUser(String username, String password, String ip) throws Exception{ try { HttpClient client = new DefaultHttpClient(); HttpPost httppost = new HttpPost(“http://login.myapp.com/”); // Request parameters and other properties. List params = new ArrayList(2); params.add(new BasicNameValuePair(“username”,username)); params.add(new BasicNameValuePair(“password”, password)); httppost.setEntity(new UrlEncodedFormEntity(params, “UTF-8”)); // Execute and get the response. HttpResponse response = […]

如何在java中欺骗ip

如何在java中更改第3层中的tcp信息?(ip spoofing)如何更改第2层信息? 在java中有没有好的库? 它需要原始套接字?