Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | the last one. that concludes the removal of all next_token() calls | Luke Leighton | 1999-11-22 | 2 | -60/+91 | |
| | | | | from rpcclient/cmd_*.c. | |||||
* | another four next_token() removals (using getopt instead) | Luke Leighton | 1999-11-22 | 4 | -32/+48 | |
| | ||||||
* | another two. | Luke Leighton | 1999-11-22 | 2 | -33/+39 | |
| | ||||||
* | another one | Luke Leighton | 1999-11-22 | 1 | -18/+12 | |
| | ||||||
* | moved two more commands over to getopt. | Luke Leighton | 1999-11-22 | 2 | -22/+32 | |
| | ||||||
* | okay :) all cmd_() functions now take int argc, char **argv :) that | Luke Leighton | 1999-11-22 | 12 | -267/+307 | |
| | | | | | | | | | | | | means that some commands need more work, as they still use next_token(), the use of which i wish to avoid. plus, i was getting fed up of the poor command-line processing in some of these commands. i'm starting to need getopt() in them, especially in samsetuser. WARNING: only cmd_samr has been modded to use getopt() so far! reg commands won't work, esp. | |||||
* | you know what? this sort of thing makes me laugh. hmm, what functions | Luke Leighton | 1999-11-21 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | have we got. and what data do we have. hmm.. i wonder what the NTLMv2 user session key can be... hmmm... weell.... there's some hidden data here, generated from the user password that doesn't go over-the-wire, so that's _got_ to be involved. and... that bit of data took a lot of computation to produce, so it's probably _also_ involved... and md4 no, md5? no, how about hmac_md5 yes let's try that one (the other's didn't work) oh goodie, it worked! i love it when this sort of thing happens. took all of fifteen minutes to guess it. tried concatenating client and server challenges. tried concatenating _random_ bits of client and server challenges. tried md5 of the above. tried hmac_md5 of the above. eventually, it boils down to this: kr = MD4(NT#,username,domainname) hmacntchal=hmac_md5(kr, nt server challenge) sess_key = hmac_md5(kr, hmacntchal); | |||||
* | moving create user function into msrpc_samr.c | Luke Leighton | 1999-11-21 | 1 | -51/+6 | |
| | ||||||
* | doing a code reshuffle. want to add code to establish trust relationships. | Luke Leighton | 1999-11-20 | 1 | -934/+0 | |
| | ||||||
* | added \PIPE\browser plus experimental brsinfo command. you wouldn't | Luke Leighton | 1999-11-19 | 2 | -0/+102 | |
| | | | | | believe the XXXX that MIGHT be involved in getting nt5rc2 to join a samba domain... | |||||
* | responses to UDP samquery go back to SERVER<00> not DOMAIN<1c>, the | Luke Leighton | 1999-11-18 | 1 | -2/+10 | |
| | | | | | | | request name. modified createuser rpcclient command to examine name being added. if it ends in a $, assume that a workstation trust account is being added. | |||||
* | added samuserset2 rpcclient command to test ACB_XXX bit-setting on | Luke Leighton | 1999-11-18 | 2 | -0/+162 | |
| | | | | | samr opcode 0x25. _yet_ another failed attempt to get nt5rc2 to join a samba domain. what _is_ it with this stuff, dammit? | |||||
* | updating reg_value_info() parsing code to take BUFFER2 instead of just | Luke Leighton | 1999-11-18 | 1 | -22/+22 | |
| | | | | a char*. now copes with multiple types. | |||||
* | added regqueryval command (experimental) to get reg_io_q_info() and | Luke Leighton | 1999-11-18 | 2 | -0/+92 | |
| | | | | | | | | reg_io_r_info() working properly. previously they weren't well understood (well, they were the first of the registry functions i did, back in december 97, ok??? :-) set ntversion to 0x1 in SAMQUERY, so that we reply same as NT4 srv. | |||||
* | oops, mistake in parsing command-arguments. repeated calls to | Luke Leighton | 1999-11-16 | 1 | -1/+1 | |
| | | | | next_token() should not have line to parse as first arg. oops. | |||||
* | added rpcclient "enumdomains" command. enumerates names of domains | Luke Leighton | 1999-11-15 | 2 | -0/+143 | |
| | | | | | | | | for which a PDC is responsible. typical answers are: <Name of Domain> plus <Builtin>. against a hierarchical, down-level-compatible NT5 PDC, there's likely to be more than these two entries!!!!! | |||||
* | debugging rpcclient spoolenum and spooljobs commands. oh, did i forget | Luke Leighton | 1999-11-09 | 3 | -9/+373 | |
| | | | | | to mention, there's a spooljobs <printer name> command, and it uses command-line completion? prints out NT print jobs really nicely, too. | |||||
* | riccardo sibilia spotted line 1884 has uint32 group_rid[0] not group_rid[1] | Luke Leighton | 1999-11-09 | 1 | -1/+1 | |
| | | | | oops! | |||||
* | const feeding frenzy | Luke Leighton | 1999-11-08 | 7 | -354/+417 | |
| | ||||||
* | const feeding frenzy | Luke Leighton | 1999-11-08 | 1 | -69/+71 | |
| | ||||||
* | added command-completion printer enum code. | Luke Leighton | 1999-11-06 | 2 | -17/+82 | |
| | ||||||
* | fixed string function for reading in printer_info_N. | Luke Leighton | 1999-11-06 | 2 | -5/+203 | |
| | ||||||
* | added rpcclient spoolenum command. enumerates printers. | Luke Leighton | 1999-11-06 | 3 | -3/+49 | |
| | | | | | | spoolss_r_io_enumprinters doesn't decode strings correctly as printer_info_1/2 code has only been written to write structures, not read them. | |||||
* | spoolss openprinterex / closeprinter client-code. | Luke Leighton | 1999-11-06 | 2 | -10/+94 | |
| | | | | | | | experimental spoolopen <printer name> command added. jean-francois, f.y.i. i changed the #define for SPOOLSS_OPENPRINTEREX from op code 0x44 to 0x45. | |||||
* | experimental spoolss rpcclient commands | Luke Leighton | 1999-11-05 | 1 | -1/+17 | |
| | ||||||
* | samuserset <username> -p password. YESSSSS :) | Luke Leighton | 1999-11-04 | 1 | -6/+54 | |
| | | | | you have to use "ntlmv1" at the moment (i.e set client ntlmv2 = no). | |||||
* | adding experimental set user password command to rpcclient, it returns | Luke Leighton | 1999-11-04 | 6 | -27/+207 | |
| | | | | error wrong password against nt. ???? | |||||
* | created msrpc_srv_enum_tprt() function by massaging cmd_srv_enum_tprt(). | Luke Leighton | 1999-11-03 | 1 | -47/+56 | |
| | ||||||
* | dynamic mem allocation in net_srv_transport_enum() parsing. | Luke Leighton | 1999-11-03 | 1 | -0/+2 | |
| | ||||||
* | added samalias <aliasname> rpcclient command (shows info on alias) | Luke Leighton | 1999-11-02 | 2 | -14/+256 | |
| | | | | | | added samaliasmem <aliasname> rpcclient command (shows members in alias) added tab command-completion to SAM alias related commands (inc 2 above). | |||||
* | dynamic mem allocation in enum dom groups and enum dom aliases | Luke Leighton | 1999-11-02 | 1 | -5/+0 | |
| | ||||||
* | yet another attempt to get lsaquerysecret working. | Luke Leighton | 1999-11-02 | 1 | -2/+2 | |
| | ||||||
* | added lsaenumdomains command. | Luke Leighton | 1999-11-01 | 2 | -3/+75 | |
| | | | | | attempting to get blood out of a stone^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H querysecret to work, it keeps returning access denied. | |||||
* | rewrote rpcclient enumaliases command. | Luke Leighton | 1999-11-01 | 2 | -130/+346 | |
| | ||||||
* | added rpcclient svcstop <service name> command. gnu readline | Luke Leighton | 1999-11-01 | 2 | -1/+67 | |
| | | | | command-completion works. | |||||
* | Fixed typo which was preventing the omission of seconds in the 'at' command. | Matthew Chapman | 1999-11-01 | 1 | -1/+1 | |
| | | | | I *love* this scheduler stuff, it's so useful! | |||||
* | added yet another rpcclient command: svcstart <service name> [arg0] [arg1] ... | Luke Leighton | 1999-10-31 | 2 | -0/+78 | |
| | | | | | | | | | works with command-line completion on the service name (ohh yesss, this is becoming my favourite bit of functionality-on-the-side hee hee :) had to fix the svc_io_q_start_service() code which was missing the ptr_argv[] array in between the array-size and the UNISTR2-array. i.e it's actually an array of _pointers_ to unicode strings... | |||||
* | command-line completion for new svcinfo command | Luke Leighton | 1999-10-31 | 2 | -7/+48 | |
| | ||||||
* | added svcinfo <service name> command. | Luke Leighton | 1999-10-31 | 2 | -56/+156 | |
| | ||||||
* | connection info level renamed to transport info level | Luke Leighton | 1999-10-30 | 1 | -1/+1 | |
| | ||||||
* | NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added. | Luke Leighton | 1999-10-30 | 4 | -2/+180 | |
| | ||||||
* | general, drastic improvements to rpcclient. | Luke Leighton | 1999-10-30 | 3 | -869/+1452 | |
| | | | | | | | | | | | added samgroup <groupname> command added samgroupmem <groupname> command added proper registry key completion added sam command user-completion (e.g samuser [tab]) added sam command group-completion (e.g samgroup [tab]) | |||||
* | messing with command-line completion. it sort-of works to be able | Luke Leighton | 1999-10-29 | 2 | -27/+104 | |
| | | | | to enumerate down a key tree, but it's a serious fudge. oops. | |||||
* | added gnu readline command-line completion to the regenum command. | Luke Leighton | 1999-10-29 | 2 | -60/+172 | |
| | ||||||
* | rpcclient regenum key client code rewritten to use higher order functions. | Luke Leighton | 1999-10-29 | 2 | -102/+185 | |
| | ||||||
* | rewrite rpcclient sam enum user code to use higher order functions. | Luke Leighton | 1999-10-29 | 1 | -68/+123 | |
| | ||||||
* | using #defines for function prototypes | Luke Leighton | 1999-10-29 | 1 | -24/+24 | |
| | ||||||
* | more reshuffling of enum groups code. more higher order functions. | Luke Leighton | 1999-10-29 | 2 | -36/+135 | |
| | ||||||
* | using higher-order-function in enum groups as a test. makes it really | Luke Leighton | 1999-10-29 | 1 | -13/+27 | |
| | | | | useful for doing things _other_ than just "print me". | |||||
* | restructuring sam enum dom groups code to do multiple calls to | Luke Leighton | 1999-10-28 | 1 | -18/+25 | |
| | | | | | sam_enum_dom_groups. enum dom aliases is still left to do (dom users already done). |