Debian Codegraph @

CHANGES

raw
1 PyRIC CHANGES
2
3 v 0.0.2 to 0.1.0
4 o added ifconfig/iwconfig functions to pyw
5 o reworked exception handling
6 - all exceptions from libnl, libio & pyw are pyric.error
7 - pyw will allow pyric to pass through
8 - reworked errorcodes to derive from errno
9 o added _iostub_, _nlstub_ and reworked traditiona commands to utilize these
10 o finished porting nl80211_h and nl80211_c (for attribute policies)
11 o pyw no longer provides familyid as a public function, rather it now uses a
12 private global value for the nl80211 family id and will instantiate it one
13 time only. In this way, callers do not not have to worry about retrieving and
14 passing it
15 o regdom get & set implemented
16 o info implemented
17 o removed radio/Radio class (shouldn't be the responsibility of this)
18 o added channels.py (provides channel/freq functions)
19 o added RFI page for notes/observations/questions
20 o changed utils.py to device.py
21 o updated libnl
22 o added channel set & get
23 - channel get only works when device is associated
24 - channel set only works when card is in monitor mode and all other interfaces
25 have been deleted
26 o added device add & delete
27 o rewrote pyw function to handle one-time & persistent functions using a
28 single function interface for each command
29 o added Card class and wrote functions to handle it in pyw
30 o implemented basic help functionality (for nl80211)
31 o added monitor flag(s) support in devadd
32 o began work on a user guide
33 o added nested attribute handling
34 o added partial phyinfo handles all but supported channels/bands
35 o fixed bugs in devinfo and phyinfo
36 o added setup.py and required files
37 o at least one card (ath9k_htc) has an unknown supported command, added a
38 wrapper around the list IFTYPES to handle commands not listed
39 o libnl: attribute related i.e. nla_* moved out of GENLMsg class and made as
40 standalone functions
41 o in pyw
42 - added modeset/modeget in pyw
43 - readded freqset in pyw
44 - added devcmds in pyw
45 - annotated (in comments) if fcts needed root privileges
46 - added functions to get/set ip address, netmask and broadcast
47 - fixed PEP8 errors
48 - added function pulling supported freqs out NL80211_ATTR_WIPHY_BANDS
49 * ATT using _getfreqs_ which attempts to find the packed version of every
50 freq
51 * nl80211_c.nl80211_parse_freqs works but is slower than _getfreqs_ and
52 uses several hacks which may make it invalid for certain cards
53 - added 4.9GHz frequencies to channels.py
54 - fixed _validmac_ to validate both uppercase & lowercase hex characters
55 - added devfreqs, devchs
56 o unittest completed 61 tests ran in 5.360s
57 o added rfkill (still working on it)
58 o production release
59
60 v 0.1.1 - 0.1.2
61 desc: wireless nic library: wireless radio identification, manipulation, enumeration
62 includes: /nlhelp /lib /net /utils pyw 0.1.2
63 changes:
64 o restructured hierarchy
65 - renamed device to hardware
66 o added mac address related functions to hardware
67 o split rfkill into functions file and definition file
68 o added block/unblock to pyw
69 o updated pyw to handle the newest version of libnl.py's processing of nested
70 attributes
71
72 v 0.1.3
73 o added this File, a revision history
74 o fixed issues
75 - # 13: Failed to process commands.help
76 - # 14: nlmsg_fromstream can incorrectly return error based on stream size
77 - # 11: MemoryError on nla_parse_nested()
78 o added nla_put_flag to libnl
79 o identified (unopened issue) and fixed error with ouifetch having invalid path
80 of default oui file
81 o moved parseoui from hardware to ouifetch renaming to parse
82 o removed ouifetch execution ability - parse and fetch must be called w/in
83 python console. Will eventually add this capability as as top-level program
84 o added ieee80211_h.py to net/wireless
85 o added supported ciphers to pyw.phyinfo dict
86 o added functions
87 - pwrsaveset and pwrsaveget
88 - covclassset
89 - retryshortset
90 - retrylongset
91 - rtsthreshset
92 - fragthreshset
93
94 v 0.1.4
95 o added functions:
96 - isup
97 - covclassget
98 - retryshortget
99 - retrylongget
100 - ifinfo
101 o modified devadd. User is allowed to submit a Card object or a physical index
102 o removed hardcoded values for covclassset, retry(short|long)set, retsthreshet and
103 fragrthreshset
104 - constants now defined in wlan.h (see below)
105 o removed return True where redundant i.e. when setting mac address we can assume
106 it worked if no error was thrown
107 o renamed ieee80211_h to wlan
108 o didn't like the incestual circular pyric error (libnl shouldn't know about pyric)
109 - replaced pyric.error with defined error in libnl and libio
110 - pyw has to catch libnl and libio errors and reraise as pyric errors
111 - retooled exception messages
112 o added new functions from 0.1.3 and 0.1.4 to unittests
113 o updated nl80211_h w/ additional constants included in kernel v 4 header
114 o added propietary concept of set to netlink processing
115 - nl80211 appears to define a set of like-sized elements (see cipher_suites)
116 o modified pyric exceptions
117 - imports errno codes into pyric, conforming how functions access error codes
118
119 v 0.1.5 Begin STA associated functionality
120 o added functions:
121 - isconnected
122 - disconnect
123 - link
124 - stainfo
125 - devset
126 - phylist
127 - openconnect (doesn't currently work)
128 - phyadd (renamed from original devadd, iw phy <phy> interface add ...)
129 - devadd (iw dev <dev> interface add ....)
130 o updated nested netlink attribute handling - my understanding of it was incomplete
131 - There are still occasional errors
132 - nested attributes are parsed as 'far' as possible
133 o reupdated nested netlink attribute handling - this time it really works :)
134 - nested attributes are now parsed correctly, any errors are a result of
135 incorrect packing on the other side or packet corruption and the entire
136 unparsed attribute will be returned.
137 - nla_parse_nested has been changed to return a list of tuples
138 t = (index,attribute) which (TODO #41) eases the burden on the calling
139 function
140 - fixed 're'nesting of nested attributes
141 - parsing wiphy bands (issue #7) is now fully functional and no longer relies
142 on a hacked fix
143 o devstds now uses phyinfo to determine standards Card supports
144 o completely 'remodeled' functions in pyw to take advantage of new parsing
145 from libnl (have left some of the error checking in place as a backup until
146 testing confirms that the new nla_parse_nested is bug-free)
147 o fixed error on devadd during restoration in examples/pentest.py
148 o fixed output error, incorrect labeling
149 o fixed output error ASW max tx power
150 o added phylist w.r.t issue #17
151 o fixed devfreqs, devchs after updating phyinfo
152 o add support for python3 (keeping compability with python2.7)
153 - urllib2 vs urllib
154 - replaced map with list comprehensions
155 - replaced xrange with range
156 - python 3.5 compatible. python 3.0 is compatible except for examples and
157 pyw.unittest.pyw (see corresponding files for reasons)
158 - python 2.7 is the preferred (for me at least) 'medium' and compatibly issues
159 with python 3 have been rectified at the expense of python 3 and not python 2
160 o fixed incorrect frequencies in unii_5_C2F in utils/channels
161 o updated pyw.unittest for python 3.5 and for added functions
162 o added by band to channels and freqs in utils/channels.py
163
164 v 0.1.6 Continue with STA functionality
165 o Issue #21 resolved. openconnect (renamed to connect) now works. (had to fix
166 how the ssid was being passed. as a string with an affixed null byte, it would
167 fail but as unspec, it succeeded)
168 - issue 1: wpa_supplicant must be turned off
169 - issue 2: caller/user must configure dhcp request or inet themselves
170 - issue 3: only works on open networks
171 o Issue #24 (TODO #50) resolved. getcard which is the entry point for any
172 nl80211 functionality uses devinfo to retrieve the Card tuple. devinfo will
173 now report No Such device as two seperate errors one identifying when there
174 is no device currently present on the machine and one identifying when the
175 specified dev's driver does not support nl80211
176 o fixed TypeError resulting from raising pyric.error incorrectly
177 o phyadd accepts either a card or a phy
178 o added freqget
179 o Note: w.r.t https://wraithwireless.wordpress.com/2016/07/24/linux-kernel-bug/
180 have tested further, phyadd,devadd will work (i.e. not rename the card)
181 under the following conditions a) the type is not managed or b) there is no
182 other device currently associated with the new card's phy. Have also determined
183 that integrated cards are also suspect to this bug?
184 o made pyric error messages less ambiguous
185 o changed template and stub so that all pyw functions can now use named parameters
186 if desired
187 - i.e. pyw.freqset(card=<Card>,rf=2412,nlsock=<nlsocket>) or
188 pyw.freqset(<Card>,2412,None,<nlsocket>)
189 o renamed the following functions:
190 - inetget to ifaddrget
191 - inetset to ifaddrset
192 - ip4set to inetset
193 - netmaskset to maskset
194 - broadcastset to bcastset
195 o adddres related functions mac and ifaddr return True on success, False otherwise
196 o commented out constants in sockios_h that are not being used
197 - no significant change but will reduce bytecode size
198 o fixed error in iswireless (referenced in wifiphisher #329)
199 o fixed phylist failure for OpenWRT as pointed out by sarom5
200 o Corrected README.md (Issue #27)
201 o Added scripts directory
202 - added ouiupdate.py to scripts directory