{"id":4759,"date":"2020-03-15T21:29:04","date_gmt":"2020-03-15T22:29:04","guid":{"rendered":"http:\/\/crypt3r.ir\/wp\/?p=4759"},"modified":"2020-03-15T21:30:07","modified_gmt":"2020-03-15T22:30:07","slug":"%d9%81%d9%87%d9%85%db%8c%d8%af%d9%86-%d8%b1%d9%88%d8%b4%d9%86-%d8%a8%d9%88%d8%af%d9%86-%d8%af%d8%b4%d9%85%d9%86-%d8%b4%da%a9%d9%86-%da%a9%d8%a7%d8%b1%d8%a8%d8%b1-%d8%a8%db%8c%d8%b3%db%8c%da%a9-%d9%81","status":"publish","type":"post","link":"https:\/\/crypt3r.ir\/wp\/%d9%81%d9%87%d9%85%db%8c%d8%af%d9%86-%d8%b1%d9%88%d8%b4%d9%86-%d8%a8%d9%88%d8%af%d9%86-%d8%af%d8%b4%d9%85%d9%86-%d8%b4%da%a9%d9%86-%da%a9%d8%a7%d8%b1%d8%a8%d8%b1-%d8%a8%db%8c%d8%b3%db%8c%da%a9-%d9%81\/","title":{"rendered":"\u0641\u0647\u0645\u06cc\u062f\u0646 \u0631\u0648\u0634\u0646 \u0628\u0648\u062f\u0646 \u062f\u0634\u0645\u0646 \u0634\u06a9\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0628\u06cc\u0633\u06cc\u06a9 \u0641\u0648\u0631\u0627\u0646\u062f\u0631\u0648\u06cc\u062f"},"content":{"rendered":"<p>\u0628\u0627 \u0633\u0644\u0627\u0645 \u0648 \u0633\u067e\u0627\u0633 \u062e\u062f\u0645\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0639\u0632\u06cc\u0632 \u0633\u0627\u06cc\u062a<\/p>\n<p>&nbsp;<\/p>\n<p>\u0627\u0645\u0631\u0648\u0632 \u0628\u0631\u0627\u062a\u0648\u0646 \u062a\u06a9\u0647 \u06a9\u062f \u0628\u0633\u06cc\u0627\u0631 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0645\u0647\u06cc\u0627 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 \u06a9\u0647 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0622\u06cc \u067e\u06cc \u0627\u0635\u0644\u06cc \u062f\u0627\u062e\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0633\u062a \u06cc\u0627 \u0628\u0627 \u062f\u0634\u0645\u0646 \u0634\u06a9\u0646<\/p>\n<p><!--more--><\/p>\n<h1><strong>\u0641\u0647\u0645\u06cc\u062f\u0646 \u0631\u0648\u0634\u0646 \u0628\u0648\u062f\u0646 \u062f\u0634\u0645\u0646 \u0634\u06a9\u0646<\/strong><\/h1>\n<p><strong>\u062f\u0648\u0633\u062a\u0627\u0646 \u0628\u0639\u0636\u06cc \u0648\u0642\u062a\u0627 \u0645\u0627<\/strong>\u00a0\u0646\u0645\u06cc\u062e\u0648\u0627\u06cc\u0645 \u06a9\u0627\u0631\u0628\u0631\u0645\u0648\u0646 \u062f\u0634\u0645\u0646\u00a0<strong>\u0634\u06a9\u0646\u0634 \u0631\u0648\u0634\u0646 \u0628\u0627\u0634\u0647<\/strong>\u00a0\u0648 \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647\u00a0<strong>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u0647 \u062e\u0628<\/strong>\u00a0\u062f\u0631 \u0627\u06cc\u0646\u00a0<strong>\u0635\u0648\u0631\u062a \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f<\/strong>\u00a0\u0627\u0632 \u0637\u0631\u06cc\u0642<strong>\u00a0\u062a\u0627\u0628\u0639 \u0632\u06cc\u0631 \u0627\u06cc\u0646<\/strong>\u00a0\u0631\u0648 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u0648 \u0627\u06cc\u0646\u06a9\u0647\u00a0<strong>\u0627\u06af\u0647 \u062f\u0634\u0645\u0646 \u0634\u06a9\u0646<\/strong>\u00a0\u0631\u0648\u0634\u0646 \u0628\u0648\u062f \u0628\u062a\u0648\u0646\u06cc\u062f \u06cc\u0647\u00a0<strong>\u0633\u0631\u06cc \u0645\u062d\u062f\u0648\u062f\u06cc\u062a<\/strong>\u00a0\u0647\u0627\u06cc\u06cc \u0631\u0648 \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><strong>\u0628\u0627\u0627\u06cc\u0646 \u062a\u0627\u0628\u0639 \u0628\u0631\u0627\u062d\u062a\u06cc \u0647\u0645 \u062a\u0648\u06cc \u0628\u06cc\u0633\u06cc\u06a9 \u0648 \u0647\u0645 \u062c\u0627\u0648\u0627 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0645\u062a\u0648\u062c\u0647 \u0628\u0634\u06cc\u062f<\/strong><\/p>\n<p><strong>\u06f1 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc \u0647\u0627 \u0631\u0648 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u0628\u0647 \u0645\u0646\u06cc\u0641\u0633\u062a:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">AddPermission(android.permission.ACCESS_NETWORK_STATE)\r\nAddPermission(android.permission.INTERNET)\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u06f2\u00a0 \u0627\u06cc\u0646 \u06a9\u062f inLine \u0631\u0648 \u0628\u06cc\u0646 sub \u0647\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div><\/div>\n<pre class=\"lang:default decode:true \">#if java\r\nimport java.net.NetworkInterface;\r\nimport java.util.ArrayList;\r\nimport java.util.Collections;\r\nimport java.util.List;\r\n \r\npublic boolean hasvpn(){\r\nList networkList = new ArrayList();\r\ntry {\r\nfor (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\r\nif (networkInterface.isUp())\r\nnetworkList.add(networkInterface.getName());\r\n} \r\n} catch (Exception ex) {\r\n \r\n}\r\n \r\nreturn networkList.contains(\"tun0\");\r\n}\r\n#End If\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u06f3\u00a0 \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647: \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 javaobject \u0631\u0648 \u062a\u06cc\u06a9 \u0628\u0631\u0646\u06cc\u062f.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true\">Dim j As JavaObject\r\nj.InitializeContext\r\nIf j.RunMethod(\"hasvpn\",Null)=True Then\r\nToastMessageShow(\"\u062f\u0634\u0645\u0646 \u0634\u06a9\u0646 \u0634\u0645\u0627 \u0631\u0648\u0634\u0646 \u0627\u0633\u062a\",True)\r\nElse\r\nToastMessageShow(\"VPN \u0631\u0648\u0634\u0646 \u0646\u06cc\u0633\u062a\",True)\r\nEnd If\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0628\u0627 \u0633\u0644\u0627\u0645 \u0648 \u0633\u067e\u0627\u0633 \u062e\u062f\u0645\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0639\u0632\u06cc\u0632 \u0633\u0627\u06cc\u062a &nbsp; \u0627\u0645\u0631\u0648\u0632 \u0628\u0631\u0627\u062a\u0648\u0646 \u062a\u06a9\u0647 \u06a9\u062f \u0628\u0633\u06cc\u0627\u0631 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0645\u0647\u06cc\u0627 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 \u06a9\u0647 \u0645\u06cc\u062a\u0648\u0646\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0622\u06cc \u067e\u06cc \u0627\u0635\u0644\u06cc \u062f\u0627\u062e\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0633\u062a \u06cc\u0627 \u0628\u0627 \u062f\u0634\u0645\u0646 \u0634\u06a9\u0646<\/p>\n","protected":false},"author":1,"featured_media":468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[113],"tags":[1072,50,1073,1071],"class_list":["post-4759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-113","tag-1072","tag-50","tag-1073","tag-1071"],"_links":{"self":[{"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/posts\/4759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/comments?post=4759"}],"version-history":[{"count":0,"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/posts\/4759\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/media\/468"}],"wp:attachment":[{"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/media?parent=4759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/categories?post=4759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crypt3r.ir\/wp\/wp-json\/wp\/v2\/tags?post=4759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}