Skip to content

Commit f889099

Browse files
committed
changes: 202405222148
1 parent b03dc4e commit f889099

File tree

11 files changed

+12054
-1
lines changed

11 files changed

+12054
-1
lines changed

Diff for: A/ADmanage/0.7-0.8/README.md

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Comparing `tmp/admanage-0.7.tar.gz` & `tmp/admanage-0.8.tar.gz`
2+
3+
## filetype from file(1)
4+
5+
```diff
6+
@@ -1 +1 @@
7+
-gzip compressed data, was "admanage-0.7.tar", last modified: Sun May 12 16:52:25 2024, max compression
8+
+gzip compressed data, was "admanage-0.8.tar", last modified: Wed May 22 19:46:37 2024, max compression
9+
```
10+
11+
## Comparing `admanage-0.7.tar` & `admanage-0.8.tar`
12+
13+
### file list
14+
15+
```diff
16+
@@ -1,13 +1,13 @@
17+
-drwxrwxrwx 0 0 0 0 2024-05-12 16:52:25.467577 admanage-0.7/
18+
-drwxrwxrwx 0 0 0 0 2024-05-12 16:52:25.444335 admanage-0.7/ADmanage/
19+
--rw-rw-rw- 0 0 0 13798 2024-05-12 16:51:46.000000 admanage-0.7/ADmanage/__init__.py
20+
-drwxrwxrwx 0 0 0 0 2024-05-12 16:52:25.463881 admanage-0.7/ADmanage.egg-info/
21+
--rw-rw-rw- 0 0 0 7702 2024-05-12 16:52:25.000000 admanage-0.7/ADmanage.egg-info/PKG-INFO
22+
--rw-rw-rw- 0 0 0 198 2024-05-12 16:52:25.000000 admanage-0.7/ADmanage.egg-info/SOURCES.txt
23+
--rw-rw-rw- 0 0 0 1 2024-05-12 16:52:25.000000 admanage-0.7/ADmanage.egg-info/dependency_links.txt
24+
--rw-rw-rw- 0 0 0 15 2024-05-12 16:52:25.000000 admanage-0.7/ADmanage.egg-info/requires.txt
25+
--rw-rw-rw- 0 0 0 9 2024-05-12 16:52:25.000000 admanage-0.7/ADmanage.egg-info/top_level.txt
26+
--rw-rw-rw- 0 0 0 7702 2024-05-12 16:52:25.467577 admanage-0.7/PKG-INFO
27+
--rw-rw-rw- 0 0 0 7557 2024-05-12 16:50:02.000000 admanage-0.7/README.md
28+
--rw-rw-rw- 0 0 0 42 2024-05-12 16:52:25.467577 admanage-0.7/setup.cfg
29+
--rw-rw-rw- 0 0 0 363 2024-05-12 16:50:49.000000 admanage-0.7/setup.py
30+
+drwxrwxrwx 0 0 0 0 2024-05-22 19:46:37.689095 admanage-0.8/
31+
+drwxrwxrwx 0 0 0 0 2024-05-22 19:46:37.657838 admanage-0.8/ADmanage/
32+
+-rw-rw-rw- 0 0 0 13926 2024-05-22 19:42:55.000000 admanage-0.8/ADmanage/__init__.py
33+
+drwxrwxrwx 0 0 0 0 2024-05-22 19:46:37.689095 admanage-0.8/ADmanage.egg-info/
34+
+-rw-rw-rw- 0 0 0 7702 2024-05-22 19:46:37.000000 admanage-0.8/ADmanage.egg-info/PKG-INFO
35+
+-rw-rw-rw- 0 0 0 198 2024-05-22 19:46:37.000000 admanage-0.8/ADmanage.egg-info/SOURCES.txt
36+
+-rw-rw-rw- 0 0 0 1 2024-05-22 19:46:37.000000 admanage-0.8/ADmanage.egg-info/dependency_links.txt
37+
+-rw-rw-rw- 0 0 0 15 2024-05-22 19:46:37.000000 admanage-0.8/ADmanage.egg-info/requires.txt
38+
+-rw-rw-rw- 0 0 0 9 2024-05-22 19:46:37.000000 admanage-0.8/ADmanage.egg-info/top_level.txt
39+
+-rw-rw-rw- 0 0 0 7702 2024-05-22 19:46:37.689095 admanage-0.8/PKG-INFO
40+
+-rw-rw-rw- 0 0 0 7557 2024-05-22 19:40:17.000000 admanage-0.8/README.md
41+
+-rw-rw-rw- 0 0 0 42 2024-05-22 19:46:37.689095 admanage-0.8/setup.cfg
42+
+-rw-rw-rw- 0 0 0 363 2024-05-22 19:45:27.000000 admanage-0.8/setup.py
43+
```
44+
45+
### Comparing `admanage-0.7/ADmanage/__init__.py` & `admanage-0.8/ADmanage/__init__.py`
46+
47+
* *Files 5% similar despite different names*
48+
49+
```diff
50+
@@ -1,35 +1,40 @@
51+
import ldap3
52+
-from ldap3 import Server, Connection, ALL, SUBTREE, MODIFY_ADD, MODIFY_DELETE, MODIFY_REPLACE, NTLM
53+
+from ldap3 import Server, Connection, ALL, SUBTREE, MODIFY_ADD, MODIFY_DELETE, MODIFY_REPLACE, NTLM, SIMPLE
54+
from impacket.structure import Structure
55+
import socket
56+
import dns.resolver
57+
import datetime
58+
import json
59+
60+
class ADclient:
61+
def __init__(self, domain, username, password, hashes, dc_ip, base_dn=None, secure=False):
62+
self.domain = domain
63+
self.username = username
64+
- self.sam = f"{domain}\\{username}"
65+
+ self.sam = f"{domain.split('.')[0]}\\{username}"
66+
self.password = password or hashes
67+
self.dc_ip = dc_ip
68+
self.base_dn = base_dn
69+
self.secure = secure
70+
self.domain_root = f"DC={domain.split('.')[0]},DC={domain.split('.')[1]}"
71+
self.dnsroot = f"DC={domain},CN=MicrosoftDNS,DC=DomainDnsZones,{self.domain_root}"
72+
self.conn = self.connect_to_ldap()
73+
74+
def connect_to_ldap(self):
75+
- dc_url = f"ldaps://{self.dc_ip}:636" if self.secure else f"ldap://{self.dc_ip}:389"
76+
+ dc_url = f"ldap://{self.dc_ip}:389"
77+
+ auth = NTLM
78+
+ if self.secure:
79+
+ auth = SIMPLE
80+
+ dc_url = f"ldaps://{self.dc_ip}:636"
81+
+
82+
if not self.base_dn:
83+
self.base_dn = self.domain_root
84+
85+
- server = Server(dc_url, get_info=ALL)
86+
- conn = Connection(server, user=self.sam, password=self.password, authentication=NTLM, auto_bind=True)
87+
+ server = Server(dc_url, use_ssl=self.secure, get_info=ALL)
88+
+ conn = Connection(server, user=self.sam, password=self.password, authentication=auth, auto_bind=True)
89+
return conn
90+
91+
def disconnect(self):
92+
self.conn.unbind()
93+
94+
class DNS_RECORD(Structure):
95+
"""
96+
```
97+
98+
### Comparing `admanage-0.7/ADmanage.egg-info/PKG-INFO` & `admanage-0.8/ADmanage.egg-info/PKG-INFO`
99+
100+
* *Files 1% similar despite different names*
101+
102+
```diff
103+
@@ -1,10 +1,10 @@
104+
Metadata-Version: 2.1
105+
Name: ADmanage
106+
-Version: 0.7
107+
+Version: 0.8
108+
Description-Content-Type: text/markdown
109+
Requires-Dist: ldap3
110+
Requires-Dist: impacket
111+
112+
# ADmanage
113+
114+
The provided script is a Python program that interacts with an Active Directory (AD) server using the LDAP protocol. It allows you to perform various operations on DNS entries and AD objects (users, groups and computers).
115+
```
116+
117+
### Comparing `admanage-0.7/PKG-INFO` & `admanage-0.8/PKG-INFO`
118+
119+
* *Files 1% similar despite different names*
120+
121+
```diff
122+
@@ -1,10 +1,10 @@
123+
Metadata-Version: 2.1
124+
Name: ADmanage
125+
-Version: 0.7
126+
+Version: 0.8
127+
Description-Content-Type: text/markdown
128+
Requires-Dist: ldap3
129+
Requires-Dist: impacket
130+
131+
# ADmanage
132+
133+
The provided script is a Python program that interacts with an Active Directory (AD) server using the LDAP protocol. It allows you to perform various operations on DNS entries and AD objects (users, groups and computers).
134+
```
135+
136+
### Comparing `admanage-0.7/README.md` & `admanage-0.8/README.md`
137+
138+
* *Files identical despite different names*
139+

0 commit comments

Comments
 (0)