• Stars
    star
    252
  • Rank 161,312 (Top 4 %)
  • Language
    C
  • Created about 11 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is a tool used to prevent GFW DNS poisoning and return to the correct ip

GFWDnsResolver: 获取GFW DNS域名污染的真实IP的小工具

阅读github pages 版本

以前写的小工具,最近整理代码,再这里公布出来。这个小工具用于获取被gfw dns 污染域名的真实ip地址,通常可以用于获取twitter,youtube,facebook等网址的真实ip地址。如果你的某些程序需要绕过GFW DNS污染也许这些代码片断会用的上,分别提供了c语言和java的实现版本。

C 语言版本

编译

gcc -o gfw_dns_resolver  gfw_dns_resolver.c 

编译输出调试信息版本

gcc -o gfw_dns_resolver -DDEBUG gfw_dns_resolver.c 

运行示例

./gfw_dns_resolver www.twitter.com

输出:

The real ip is: 199.59.149.230

JAVA 版本

编译

javac GFWDnsResolver.java

运行示例

java GFWDnsResolver www.youtube.com

输出:

host:www.youtube.com The real ip is:173.194.72.102

More Repositories

1

mproxy

c 语言实现的一个最小的http代理,支持翻墙
C
991
star
2

unused-image

This is shell script used to check and clean unused image resource , support Android and IOS project
Shell
273
star
3

android-ui-test-runner

一个非常简单的用于测试UI 的单元测试框架。
Java
96
star
4

ad-rules-for-xbrowser

Some AD-Block rules for XBrowser
26
star
5

gypdemo

the gyp demo for chromium build system
Python
20
star
6

chromium_android_webview

a example code for chromium android webview api
Java
18
star
7

amhello

show automake how to use
C
6
star
8

tampermonkey-api-reference

这是一份简明的油猴脚本API中文参考
5
star
9

user-script-example

Here are some user script examples to demonstrate the Grease Monkey scripting API supported by XBrowser. You can learn how to use Grease Monkey script to extend the functionality of XBrowser.
JavaScript
5
star
10

certdemo

Demonstrates how to use keytoo and openssl l to create certificates and signatures
4
star
11

dlopen-demo

show dlopen function how to use.
C++
3
star
12

chromium_content_shell

example for chromium content shell api
Java
3
star
13

code4ios

some example code for ios
Objective-C
2
star
14

xdocs

Some document for XBrowser
CSS
2
star
15

code4c

some example code for c/c++
C
1
star
16

gradle_demo

Here are a few examples of Grade Build Script usage
Java
1
star
17

buildr_sample

first example for buildr
Java
1
star
18

ndkdemo

a example for android ndk develop and java jni
Java
1
star
19

bookmarklet

bookmarklet
JavaScript
1
star
20

code4java

some example code for java
Java
1
star
21

code4android

some code example for android
Java
1
star
22

makefiledemo

some sampel for makefile
C
1
star