Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

156
LINES

< > BotCompany Repo | #1010768 // EagleDNS for botcompany.de [the real one, #1010768, but currently using domain provider's DNS]

JavaX source code (desktop) [tags: @@NXwF8 archiveHpGt4UVa archiveUKt9jCC8 use-pretranspiled] - run with: x30.jar

Download Jar. Uses 2616K of libraries. Click here for Pure Java version (20161L/124K).

1  
!7
2  
3  
// NOTE: make sure the SOA is correct!
4  
5  
static double refreshEvery = 0 /*60*/;
6  
static int smartBotTimeOut = 60*30;
7  
8  
sS zone = [[
9  
botcompany.de. IN    SOA   ns1.stefantrades.pro.  stefan\.reich\.maker\.of\.eye.gmail.com.  (
10  
                                        20190925     ; Serial
11  
                                        60M     ; Refresh
12  
                                        15M     ; Retry
13  
                                        7D      ; Expiry
14  
                                        30M )   ; Minimum
15  
@                       IN      NS      ns1.stefantrades.pro.
16  
@                       IN      NS      ns2.stefantrades.pro.
17  
@                       IN      A       167.86.121.181
18  
c8                      IN      A       167.86.121.181
19  
home                300 IN      A       2.203.147.51
20  
oldmain                 IN      A       185.183.156.46
21  
coffee                  IN      A       195.154.179.147
22  
*.coffee                IN      A       195.154.179.147
23  
vnc-coffee              IN      A       195.154.179.147
24  
transpile-coffee        IN      A       195.154.179.147
25  
avor                    IN      A       195.154.179.147
26  
robin-avor              IN      A       195.154.179.147
27  
christian-avor          IN      A       195.154.179.147
28  
avor-qa                 IN      A       195.154.179.147
29  
*.avor-qa               IN      A       195.154.179.147
30  
cruddie                 IN      A       195.154.179.147
31  
*.cruddie               IN      A       195.154.179.147
32  
stripe-test             IN      A       195.154.179.147
33  
meta-bot                IN      A       195.154.179.147
34  
ada-v2                  IN      A       195.154.179.147
35  
fia                     IN      A       195.154.179.147
36  
e-buck                  IN      A       195.154.179.147
37  
ada-aws                 IN      A       18.233.63.26
38  
; sometimes the * entry doesn't work? vnc.botcompany.de caused NXDOMAIN
39  
*                       IN      A       167.86.121.181
40  
vnc                     IN      A       167.86.121.181
41  
code                    IN      A       167.86.121.181
42  
www                     IN      A       167.86.121.181
43  
butter                  IN      A       167.86.121.181
44  
stefans-os              IN      A       167.86.121.181
45  
smartbot                IN      A       167.86.121.181
46  
create                  IN      A       167.86.121.181
47  
mail                    IN      A       167.86.121.181
48  
javax                   IN      A       167.86.121.181
49  
ada                     IN      A       167.86.121.181
50  
mech                    IN      A       167.86.121.181
51  
theadmi                 IN      A       176.58.127.141
52  
theadmi2                IN      A       176.58.127.141
53  
tester                  IN      A       144.126.145.56
54  
gazellebot              IN      A       173.212.209.120
55  
;pays5-bot               IN      A       173.212.209.120
56  
pays5-bot               IN      A       195.154.179.147
57  
bea-bot                 IN      A       173.212.209.120
58  
tlc                     IN      A       195.154.179.147
59  
big                     IN      A       192.99.13.227
60  
;@                       MX      10      mail1.domainssaubillig.de.
61  
@                       MX      10      mail.botcompany.de.
62  
mail                    MX      10      mail.botcompany.de.
63  
_acme-challenge.botcompany.de. IN      TXT   "aWAwa7cLpPcFoIylAqQn13tmNyfZ6H36GUt2dFyt-eM"
64  
botcompany.de.          IN      TXT     "google-site-verification=YL5Hu5zvww8np30b4LLv_fgK0rppl2uzUKe8-14Gk98"
65  
]];
66  
67  
// Note: zone2 not active yet
68  
69  
sS zone2 = [[
70  
gazelle.rocks. IN    SOA   ns1.stefantrades.pro.  stefan\.reich\.maker\.of\.eye.gmail.com.  (
71  
                                        20190101     ; Serial
72  
                                        5M     ; Refresh
73  
                                        15M     ; Retry
74  
                                        7D      ; Expiry
75  
                                        30M )   ; Minimum
76  
@                       IN      NS      ns1.stefantrades.pro.
77  
@                       IN      NS      ns2.stefantrades.pro.
78  
@                       IN      A       173.212.209.120
79  
*                       IN      A       173.212.209.120
80  
;@                       MX      10      mail1.domainssaubillig.de.
81  
]];
82  
83  
lib 1008223 // dnsjava
84  
lib 1010766 // EagleDNS
85  
lib 1004911 // log4j
86  
87  
import se.unlogic.eagledns.EagleDNS;
88  
89  
static File zonesDir;
90  
static EagleDNS eagleDNS;
91  
92  
p {
93  
  tryToAcquirePort5000();
94  
  
95  
  S conf = loadSnippet(#1010767);
96  
  zonesDir = programFile("zones");
97  
  saveZones();
98  
  
99  
  conf = conf.replace(
100  
    [[<Property name="zoneFileDirectory">zones</Property>]],
101  
    [[<Property name="zoneFileDirectory">]] + f2s(zonesDir) + [[</Property>]]);
102  
  File configFile = saveProgramTextFile("config.xml", conf);
103  
  
104  
  //eagleDNS = nuObject("se.unlogic.eagledns.EagleDNS", f2s(configFile));
105  
  print("Making EagleDNS.");
106  
  pcall {
107  
    eagleDNS = new EagleDNS(f2s(configFile));
108  
  }
109  
  
110  
  // For some weird reason, on the servers, no lines are printed
111  
  // after this point... but they still execute!? (Auto-reload works.)
112  
  
113  
  printAndProgramLog("Made EagleDNS." + (eagleDNS == null ? "..not" : ""));
114  
  bot("Eagle DNS.");
115  
  if (refreshEvery != 0) doEvery_daemon(refreshEvery, r refresh);
116  
  
117  
  // Restart after successful transpile
118  
  
119  
  print("Making SnippetUpdateConnector.");
120  
  ownResource(snippetUpdateConnector(verbose := true));
121  
  
122  
  ownResource(vmBus_onMessage snippetUpdate(voidfunc(L l) {
123  
    print("Got snippet update: " + l);
124  
    S uri = getString(l, 1);
125  
    new Matches m;
126  
    if (swic(uri, "/transpileOK/", m))
127  
      if (sameSnippetID(programID(), firstIntAsString(m.rest()))) {
128  
        programLog("Restarting");
129  
        restart();
130  
      }
131  
  }));
132  
}
133  
134  
answer {
135  
  if "test" ret "OK";
136  
  if "refresh" {
137  
    refresh();
138  
    ret "OK";
139  
  }
140  
}
141  
142  
static void refresh() {
143  
  saveZones();
144  
  eagleDNS.reloadZones();
145  
}
146  
147  
static void saveZones {
148  
  S acmeChallenge = loadTextFileTrim(userFile("acme-challenge.txt")); // Note: not used anymore, just edit this source
149  
  if (nempty(acmeChallenge))
150  
    zone = jreplace(zone,
151  
      "_acme-challenge.botcompany.de. IN TXT <quoted>",
152  
      "_acme-challenge.botcompany.de. IN TXT " + quote(unnull(acmeChallenge)));
153  
  print(zone);
154  
  saveTextFile(newFile(zonesDir, "botcompany.de"), zone);
155  
  saveTextFile(newFile(zonesDir, "gazelle.rocks"), zone2);
156  
}

download  show line numbers  debug dex  old transpilations   

Relations

Travelled to 24 computer(s): aoiabmzegqzx, bhatertpkbcr, bvpoyihotdib, cbybwowwnfue, cfunsshuasjs, elmgxqgtpvxh, fzcpzdstiiyc, gwrvuhgaqvyk, ishqpsrjomds, iveijnkanddl, jozkyjcghlvl, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xeobevbjagfg, xrpafgyirdlv

Comments [hide]

ID Author/Program Comment Date
2024 ubataecj 1 2024-05-01 03:36:54
2023 ubataecj 1 2024-05-01 03:36:54
2022 ubataecj 1 2024-05-01 03:36:54
2018 ubataecj 1 2024-05-01 03:36:52
2014 ubataecj 1 2024-05-01 03:36:49
2010 ubataecj 1 2024-05-01 03:36:46
2001 ubataecj 1 2024-05-01 03:36:43
1993 ubataecj 1 2024-05-01 03:36:41
1989 ubataecj 1 2024-05-01 03:36:37
1985 ubataecj 1 2024-05-01 03:36:35
1981 ubataecj 1 2024-05-01 03:36:32
1977 ubataecj 1 2024-05-01 03:36:26
1973 ubataecj 1 2024-05-01 03:36:24
1969 ubataecj 1 2024-05-01 03:36:19
1968 ubataecj 555 2024-05-01 03:36:19
1966 ubataecj 555 2024-05-01 03:36:19
1965 ubataecj 555 2024-05-01 03:36:19
1961 ubataecj 555 2024-05-01 03:36:17
1956 ubataecj 555 2024-05-01 03:36:13
1948 ubataecj 1 2024-05-01 03:36:08
1946 ubataecj 555 2024-05-01 03:36:07
1926 ubataecj 1 2024-05-01 03:36:04
1925 ubataecj 555 2024-05-01 03:36:03
1921 ubataecj 1 2024-05-01 03:36:01
1920 ubataecj 555 2024-05-01 03:36:01
1910 ubataecj 1 2024-05-01 03:35:58
1909 ubataecj 1 2024-05-01 03:35:58
1908 ubataecj 1 2024-05-01 03:35:58
1907 ubataecj 1 2024-05-01 03:35:57
1906 ubataecj 555 2024-05-01 03:35:57
1902 ubataecj 1 2024-05-01 03:35:55
1901 ubataecj 555 2024-05-01 03:35:55
1897 ubataecj 1 2024-05-01 03:35:51
1896 ubataecj 555 2024-05-01 03:35:51
1887 ubataecj 1 2024-05-01 03:35:49
1886 ubataecj 555 2024-05-01 03:35:48
1882 ubataecj 1 2024-05-01 03:35:46
1881 ubataecj 555 2024-05-01 03:35:46
1874 ubataecj 1 2024-05-01 03:35:43
1870 ubataecj 1 2024-05-01 03:35:38
1865 ubataecj 1 2024-05-01 03:35:35
1860 ubataecj 1 2024-05-01 03:35:31
1859 ubataecj 555 2024-05-01 03:35:31
1855 ubataecj 1 2024-05-01 03:35:10
1848 ubataecj 555 2024-05-01 03:35:09
1845 ubataecj 1 2024-05-01 03:35:07
1843 ubataecj 555 2024-05-01 03:35:07
1840 ubataecj 1 2024-05-01 03:35:05
1838 ubataecj @@mpKpC 2024-05-01 03:35:05
1837 ubataecj 555????%2527%2522\'\" 2024-05-01 03:35:04
1836 ubataecj 555'" 2024-05-01 03:35:04
1835 ubataecj 555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' 2024-05-01 03:35:04
1832 ubataecj 1 2024-05-01 03:35:03
1830 ubataecj 555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15) 2024-05-01 03:35:00
1827 ubataecj 1 2024-05-01 03:34:59
1825 ubataecj 555vreVZx1h')) OR 615=(SELECT 615 FROM PG_SLEEP(15))-- 2024-05-01 03:34:57
1822 ubataecj 1 2024-05-01 03:34:56
1820 ubataecj 555HdXhzx91') OR 872=(SELECT 872 FROM PG_SLEEP(15))-- 2024-05-01 03:34:55
1812 ubataecj 1 2024-05-01 03:34:54
1808 ubataecj 555dpuCe6xF' OR 722=(SELECT 722 FROM PG_SLEEP(15))-- 2024-05-01 03:34:54
1797 ubataecj 1 2024-05-01 03:34:48
1795 ubataecj 1 2024-05-01 03:34:47
1793 ubataecj 1 2024-05-01 03:34:47
1792 ubataecj 1 2024-05-01 03:34:47
1791 ubataecj 1 2024-05-01 03:34:46
1790 ubataecj 1 2024-05-01 03:34:46
1789 ubataecj 555-1)) OR 959=(SELECT 959 FROM PG_SLEEP(15))-- 2024-05-01 03:34:45
1785 ubataecj 1 2024-05-01 03:34:41
1784 ubataecj 555-1) OR 624=(SELECT 624 FROM PG_SLEEP(15))-- 2024-05-01 03:34:40
1783 ubataecj @@TtJHf 2024-05-01 03:34:38
1782 ubataecj 1????%2527%2522\'\" 2024-05-01 03:34:37
1781 ubataecj 1'" 2024-05-01 03:34:37
1780 ubataecj 1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' 2024-05-01 03:34:37
1779 ubataecj 555-1 OR 111=(SELECT 111 FROM PG_SLEEP(15))-- 2024-05-01 03:34:37
1778 ubataecj 1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15) 2024-05-01 03:34:31
1777 ubataecj 555QUKNVdd1'; waitfor delay '0:0:15' -- 2024-05-01 03:34:31
1776 ubataecj 1rzHOXcbs')) OR 581=(SELECT 581 FROM PG_SLEEP(15))-- 2024-05-01 03:34:24
1775 ubataecj 555-1 waitfor delay '0:0:15' -- 2024-05-01 03:34:23
1774 ubataecj 1mAvn2iD9') OR 84=(SELECT 84 FROM PG_SLEEP(15))-- 2024-05-01 03:34:14
1773 ubataecj 555-1); waitfor delay '0:0:15' -- 2024-05-01 03:34:13
1771 ubataecj 1R3ftLQwD' OR 322=(SELECT 322 FROM PG_SLEEP(15))-- 2024-05-01 03:34:05
1770 ubataecj 555-1; waitfor delay '0:0:15' -- 2024-05-01 03:34:04
1769 ubataecj 1-1)) OR 248=(SELECT 248 FROM PG_SLEEP(15))-- 2024-05-01 03:33:57
1768 ubataecj (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ 2024-05-01 03:33:56
1767 ubataecj 1-1) OR 159=(SELECT 159 FROM PG_SLEEP(15))-- 2024-05-01 03:33:49
1766 ubataecj 5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z 2024-05-01 03:33:48
1765 ubataecj 1-1 OR 397=(SELECT 397 FROM PG_SLEEP(15))-- 2024-05-01 03:33:45
1764 ubataecj 5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z 2024-05-01 03:33:45
1763 ubataecj 1dH3mPeaB'; waitfor delay '0:0:15' -- 2024-05-01 03:33:42
1762 ubataecj 555*if(now()=sysdate(),sleep(15),0) 2024-05-01 03:33:41
1761 ubataecj 1-1 waitfor delay '0:0:15' -- 2024-05-01 03:33:38
1760 ubataecj -1" OR 2+197-197-1=0+0+0+1 -- 2024-05-01 03:33:38
1759 ubataecj -1' OR 2+680-680-1=0+0+0+1 or 'G2tXpr8L'=' 2024-05-01 03:33:37
1758 ubataecj -1' OR 2+692-692-1=0+0+0+1 -- 2024-05-01 03:33:37
1757 ubataecj -1 OR 2+475-475-1=0+0+0+1 2024-05-01 03:33:37
1756 ubataecj -1 OR 2+221-221-1=0+0+0+1 -- 2024-05-01 03:33:37
1755 ubataecj 555 2024-05-01 03:33:37
1754 ubataecj 1-1); waitfor delay '0:0:15' -- 2024-05-01 03:33:34
1753 ubataecj 555 2024-05-01 03:33:30
1752 ubataecj 1-1; waitfor delay '0:0:15' -- 2024-05-01 03:33:08
1751 ubataecj 555 2024-05-01 03:32:50
1750 ubataecj 555 2024-05-01 03:32:50
1749 ubataecj 555 2024-05-01 03:32:50
1748 ubataecj 555 2024-05-01 03:32:50
1747 ubataecj (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ 2024-05-01 03:32:49
1746 ubataecj 555 2024-05-01 03:32:46
1745 ubataecj 10"XOR(1*if(now()=sysdate(),sleep(15),0))XOR"Z 2024-05-01 03:32:42
1744 ubataecj 555 2024-05-01 03:32:41
1743 ubataecj 10'XOR(1*if(now()=sysdate(),sleep(15),0))XOR'Z 2024-05-01 03:32:38
1742 ubataecj 555 2024-05-01 03:32:37
1741 ubataecj 1*if(now()=sysdate(),sleep(15),0) 2024-05-01 03:32:35
1740 ubataecj 555 2024-05-01 03:32:34
1739 ubataecj -1" OR 2+207-207-1=0+0+0+1 -- 2024-05-01 03:32:31
1738 ubataecj -1' OR 2+214-214-1=0+0+0+1 or 'KPubyBXl'=' 2024-05-01 03:32:31
1737 ubataecj -1' OR 2+920-920-1=0+0+0+1 -- 2024-05-01 03:32:31
1736 ubataecj -1 OR 2+238-238-1=0+0+0+1 2024-05-01 03:32:31
1735 ubataecj -1 OR 2+568-568-1=0+0+0+1 -- 2024-05-01 03:32:31
1734 ubataecj 1 2024-05-01 03:32:30
1733 ubataecj 555 2024-05-01 03:32:29
1732 ubataecj 1 2024-05-01 03:32:26
1731 ubataecj 555 2024-05-01 03:32:25
1730 ubataecj 555 2024-05-01 03:32:16
1729 ubataecj 555 2024-05-01 03:32:12
1728 ubataecj 555 2024-05-01 03:32:08
1727 ubataecj 555 2024-05-01 03:32:02
1726 ubataecj 555 2024-05-01 03:32:02
1725 ubataecj 555 2024-05-01 03:32:02
1724 ubataecj 555 2024-05-01 03:32:02
1723 ubataecj 555 2024-05-01 03:32:02
1722 ubataecj 555 2024-05-01 03:32:02
1721 ubataecj 555 2024-05-01 03:31:58
1720 ubataecj 555 2024-05-01 03:31:52
1719 ubataecj 1 2024-05-01 03:27:58
1718 ubataecj 1 2024-05-01 03:27:58

add comment

Snippet ID: #1010768
Snippet name: EagleDNS for botcompany.de [the real one, #1010768, but currently using domain provider's DNS]
Eternal ID of this version: #1010768/187
Text MD5: 0247381ef2dcd6c7714ffc9fca6c6438
Transpilation MD5: 18b8e2153b81603e063593155ea04514
Author: stefan
Category: javax / dns
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-06-16 21:13:51
Source code size: 6393 bytes / 156 lines
Pitched / IR pitched: No / No
Views / Downloads: 4002 / 58127
Version history: 186 change(s)
Referenced in: [show references]