Git Product home page Git Product logo

dns_server's Introduction

Tweet Follow on Twitter GitHub Followers Top Langs

DNS_Server

Simple DNS log Server,free DNS log server

what's the new

  • Reduce requests to Elasticsearch servers based on caching
  • Added ACME DNS challenge design

How Build

git clone https://github.com/hktalent/DNS_Server
cd DNS_Server
go mod init github.com/facebookincubator/nvdtools
go mod tidy
# go build

make -f Makefile.cross-compiles

how cross build in macos

brew install FiloSottile/musl-cross/musl-cross
which gobuild
/usr/local/bin/gobuild
cat  /usr/local/bin/gobuild
go build -ldflags="-s -w " -trimpath -o $2 $1
CC=x86_64-linux-musl-gcc CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags="-linkmode external -extldflags -static -s -w " -trimpath -o $2_linux $1

gobuild . DNS_Server

How use

git commit -m "fix" .;git push
cp build/bin/* ~/go/bin/

scp -i ~/.ssh/id_rsa -r -P $myVpsPort DNS_Server [email protected]:/root/

How ACME DNS challenge

run server by key

./DNS_Server -key="dd9j-dds-33xfgk-33"

vi upApi.sh

curl -s -v "http://127.0.0.1:55555/ACME?key=dd9j-dds-33xfgk-33&k=${1}&v=${2}"

challenge

docker run -it -p 80:80  --rm --name certbot \
     -v "/etc/letsencrypt:/etc/letsencrypt" \
     -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
     certbot/certbot certonly  -d *.51pwn.com -d 51pwn.com -d *.exploit-poc.com  -d exploit-poc.com \
     --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory

chmod +x upApi.sh

./upApi.sh '_acme-challenge.exploit-poc.com.'.'QZPE4B9OQivKZDi7Hq3On1IhhdZiEX2iVJ8ojKuOGsA'
./upApi.sh "_acme-challenge.51pwn.com" "q31hmgemyDDsU_rTIM8cW3h0EExs0HPt-SqwoVa0AV8"

After running the above command, confirm the certonly operation steps

QZPE4B9OQivKZDi7Hq3On1IhhdZiEX2iVJ8ojKuOGsA and cW3h0EExs0HPt-SqwoVa0AV8 replace your image

image

image

# How config dns - add hosts ``` https://dcc.godaddy.com/manage/51pwn.com/dns/hosts ns1.51pwn.com ns2.51pwn.com

https://dcc.godaddy.com/manage/exploit-poc.com/dns/hosts ns1.exploit-poc.com ns2.exploit-poc.com

- change dns to

https://dcc.godaddy.com/manage/51pwn.com/dns ns1.51pwn.com ns2.51pwn.com

https://dcc.godaddy.com/manage/exploit-poc.com/dns ns1.exploit-poc.com ns2.exploit-poc.com


# How Run
```bash
./DNS_Server -ip 199.180.115.7 -domain 51pwn.com,exploit-poc.com -resUrl http://127.0.0.1:9999

now,you can test

ping sdfsfs.51pwn.com
ping sdlfdslfjdslkfj.exploit-poc.com

Example

curl -v 'ldap://xx22.log4j2.51pwn.com'
# or 
ping  -c 2 'xx22.log4j2.51pwn.com'

# how get check reuslt
curl -v -H 'user-agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0' -k -o- 'https://51pwn.com/dnslog?q=xx22.log4j2.51pwn.com'

result

{"ip":"172.70.209.200","domain":"xx22.log4j2.51pwn.com","type":"dnslog","date":"2022-01-23 05:19:53"}                                                                                             

Donation

Wechat Pay AliPay Paypal BTC Pay BCH Pay
paypal [email protected]

dns_server's People

Contributors

hktalent avatar pwnedanything avatar x51pwn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.