dcetest/0040755000000000000000000000000007356132563011225 5ustar rootrootdcetest/dcetest.c0100644000000000000000000002713707356127077013037 0ustar rootroot /* dcetest.c Written by: Dave Aitel & Pasi Eronen This code under GPL v 2.0 . See gpl.txt for more information. */ #include "tcpstuff.h" #define DCEPORT 135 #define BINDPACKET 0x0b #define REQUESTPACKET 0x00 #define RESPONSEPACKET 0x02 #define FLAGS 0x03 /* PFC_FIRST_FRAG | PFC_LAST_FRAG */ #define EPT_MAX_ANNOTATION_SIZE 64 #define EPT_LOOKUP 2 #define RPC_C_EP_ALL_ELTS 0 struct uuid_t { unsigned int time_low; unsigned int time_mid; unsigned int time_hi_and_version; unsigned int clock_seq_hi_and_reserved; unsigned int clock_seq_low; unsigned char node[6]; }; /* UUID for Endpoint mapper interface */ static const struct uuid_t EPT_UUID = { 0xe1af8308, 0x5d1f, 0x11c9, 0x91, 0xa4, { 0x08, 0x00, 0x2b, 0x14, 0xa0, 0xfa } }; #define EPT_VERSION 3 /* UUID for DCE RPC transfer syntax */ static const struct uuid_t TRANSFER_SYNTAX_UUID = { 0x8a885d04, 0x1ceb, 0x11c9, 0x9f, 0xe8, { 0x08, 0x00, 0x2b, 0x10, 0x48, 0x60 } }; #define TRANSFER_SYNTAX_VERSION 2 struct lookup_handle_t { unsigned int attributes; struct uuid_t uuid; }; static unsigned int next_call_id = 0; static unsigned int little_endian; void usage() { printf("Usage: dcetest host\n"); printf("Version 1.0 brought to you by Dave Aitel, daitel@atstake.com.\n"); printf("Please e-mail me if you have any questions/comments/etc\n"); printf("No liability is implied or assumed by @stake or Dave Aitel.\n"); printf("Run this program at your own risk.\n"); printf("This program under GPL v 2.0\n"); exit(1); } unsigned int load_intel_short(const unsigned char *from) { return (((unsigned int) from[0]) | ((unsigned int) from[1]) << 8); } unsigned int load_network_short(const unsigned char *from) { return (((unsigned int) from[1]) | ((unsigned int) from[0]) << 8); } unsigned int load_intel_long(const unsigned char *from) { return (((unsigned int) from[0]) | ((unsigned int) from[1]) << 8 | ((unsigned int) from[2]) << 16 | ((unsigned int) from[3]) << 24); } unsigned int load_network_long(const unsigned char *from) { return (((unsigned int) from[3]) | ((unsigned int) from[2]) << 8 | ((unsigned int) from[1]) << 16 | ((unsigned int) from[0]) << 24); } unsigned int load_short(const unsigned char *from) { if (little_endian) return load_intel_short(from); else return load_network_short(from); } unsigned long load_long(const unsigned char *from) { if (little_endian) return load_intel_long(from); else return load_network_long(from); } void store_intel_short(unsigned char *to, unsigned int value) { to[0] = value & 0xff; to[1] = (value >> 8) & 0xff; } void store_intel_long(unsigned char *to, unsigned int value) { to[0] = value & 0xff; to[1] = (value >> 8) & 0xff; to[2] = (value >> 16) & 0xff; to[3] = (value >> 24) & 0xff; } void load_uuid(const unsigned char *buffer, struct uuid_t* uuid) { uuid->time_low = load_long(buffer); uuid->time_mid = load_short(buffer+4); uuid->time_hi_and_version = load_short(buffer+6); uuid->clock_seq_hi_and_reserved = buffer[8]; uuid->clock_seq_low = buffer[9]; memcpy(uuid->node, buffer+10, 6); } void load_intel_uuid(const unsigned char *buffer, struct uuid_t* uuid) { uuid->time_low = load_intel_long(buffer); uuid->time_mid = load_intel_short(buffer+4); uuid->time_hi_and_version = load_intel_short(buffer+6); uuid->clock_seq_hi_and_reserved = buffer[8]; uuid->clock_seq_low = buffer[9]; memcpy(uuid->node, buffer+10, 6); } int store_intel_uuid(unsigned char *buffer, const struct uuid_t* uuid) { store_intel_long(buffer, uuid->time_low); store_intel_short(buffer+4, uuid->time_mid); store_intel_short(buffer+6, uuid->time_hi_and_version); buffer[8] = uuid->clock_seq_hi_and_reserved; buffer[9] = uuid->clock_seq_low; memcpy(buffer+10, uuid->node, 6); return 16; } void uuid_to_string(char *buffer, const struct uuid_t* uuid) { sprintf(buffer, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", uuid->time_low, uuid->time_mid, uuid->time_hi_and_version, uuid->clock_seq_hi_and_reserved, uuid->clock_seq_low, uuid->node[0], uuid->node[1], uuid->node[2], uuid->node[3], uuid->node[4], uuid->node[5]); } int dce_enum_bind(int fd) { unsigned char buffer[1000]; unsigned char *frag_lengthp; int frag_length; unsigned char *p; memset(buffer, 0x00, sizeof(buffer)); p = buffer; /* Bind PDU header */ *p++ = 0x05; /*version*/ *p++ = 0x00; /*minor version*/ *p++ = BINDPACKET; *p++ = FLAGS; /* data representation (little endian, ASCII, IEEE floating point) */ *p++ = 0x10; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00; /* now we have 2 bytes of frag length */ frag_lengthp = buffer+8; /*copy the length of the fragment here later*/ p += 2; /* auth length = 0 */ p += 2; /* call id */ store_intel_long(p, next_call_id++); p += 4; /* max xmit frag */ store_intel_short(p, 4096); p += 2; /* max recv frag */ store_intel_short(p, 4096); p += 2; /* assoc group = 0 */ p += 4; /* num ctx items */ *p++ = 1; /* alignment padding */ p += 3; /* u_int16 p_cont_id */ *p++ = 0x00; *p++ = 0x00; /* u_int8 n_transfer_syn */ *p++ = 1; /* alignment padding */ p += 1; /* Interface UUID + version */ p += store_intel_uuid(p, &EPT_UUID); store_intel_long(p, EPT_VERSION); p += 4; /* Transfer syntax UUID + version*/ p += store_intel_uuid(p, &TRANSFER_SYNTAX_UUID); store_intel_long(p, TRANSFER_SYNTAX_VERSION); p += 4; /* printf("bind frag length=%d\n",p-buffer); */ frag_length = p-buffer; store_intel_short(frag_lengthp, frag_length); write_data(fd, frag_length, buffer); return 1; } int dce_enum_get_next(int fd, struct lookup_handle_t *entry_handle) { unsigned char buffer[1000]; unsigned char *frag_lengthp; int frag_length; unsigned char *p; memset(buffer, 0x00, sizeof(buffer)); p = buffer; /* Start of Request PDU header */ *p++ = 0x05; /*version*/ *p++ = 0x00; /*minor version*/ *p++ = REQUESTPACKET; *p++ = FLAGS; /* data representation (little endian, ASCII, IEEE floating point) */ *p++ = 0x10; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00; /* now we have 2 bytes of frag length */ frag_lengthp = buffer+8; /*copy the length of the fragment here later*/ p += 2; /* auth length = 0 */ p += 2; /* call id */ store_intel_long(p, next_call_id++); p += 4; /* alloc_hint (0) */ p += 4; /* context ID (0) */ p += 2; /* opnum */ store_intel_short(p, EPT_LOOKUP); p += 2; /* End of Request PDU header */ /* Parameters for ept_lookup */ /* unsigned32 inquiry_type */ store_intel_long(p, RPC_C_EP_ALL_ELTS); p += 4; /* uuid_p_t object = NULL */ p += 4; /* rpc_if_id_p_t interface_id = NULL */ p += 4; /* unsigned32 vers_option = 0 (not used) */ p += 4; /* unsigned32 entry_handle.attributes */ store_intel_long(p, entry_handle->attributes); p += 4; /* uuid_t entry_handle.context_handle_uuid */ p += store_intel_uuid(p, &entry_handle->uuid); /* unsigned32 max_ents */ store_intel_long(p, 1); p += 4; frag_length = p-buffer; store_intel_short(frag_lengthp, frag_length); write_data(fd, frag_length, buffer); return 1; } int read_dce_pdu(int fd, unsigned char *buf) { int frag_length; read_data(fd, 16, buf); if ((buf[4] & 0xf0) == 0x10) { little_endian = 1; } else { little_endian = 0; } frag_length = load_short(buf+8); read_data(fd, frag_length-16, buf+16); return frag_length; } int dce_parse_enum_response(const unsigned char *buf, struct lookup_handle_t *entry_handle) { const unsigned char *p; int tint; char annotation[EPT_MAX_ANNOTATION_SIZE+1]; int floor, floors; int address_type; char tmp_address[200]; char tmp_address2[200]; p = buf; if (p[2] != RESPONSEPACKET) { printf("Unexpected DCE PDU type %02x\n", p[2]); return 0; } /* Skip common DCE header */ p += 16; /* Skip alloc_hint, p_cont_id, cancel_count, and padding */ p += 8; /* context_handle_attributes */ entry_handle->attributes = load_long(p); p += 4; /* context_handle_uuid */ load_uuid(p, &entry_handle->uuid); p += 16; /* num_ents */ if (load_long(p) == 0) { return 0; } p += 4; /* skip something */ p += 36; /* annotation */ tint = load_long(p); p += 4; if (tint > EPT_MAX_ANNOTATION_SIZE) { printf("Annotation length (%d) too long\n", tint); return 0; } /* annotation length includes trailing NULL */ memcpy(annotation, p, tint); p += tint; printf("\nannotation=%s\n",annotation); while ((p-buf) % 4 != 0) { p++; } /* Skip tower lengths */ p += 8; floors = load_intel_short(p); p += 2; /* printf("floors = %d\n", floors);*/ tmp_address[0] = '\0'; for (floor = 1; floor <= floors; floor++) { tint = load_intel_short(p); p += 2; /*printf("floor %d lhs = %d bytes\n", floor, tint);*/ if (floor == 1) { struct uuid_t uuid; load_intel_uuid(p+1, &uuid); uuid_to_string(tmp_address, &uuid); printf("uuid=%s, version=%d\n", tmp_address, load_intel_short(p+17)); } else if (floor == 2 || floor == 3) { /* don't print */ } else { address_type = *p; } p += tint; tint = load_intel_short(p); p += 2; if (floor > 3) { switch (address_type) { case 0x07: sprintf(tmp_address, "ncacn_ip_tcp:%%s[%d]", load_network_short(p)); break; case 0x08: sprintf(tmp_address, "ncadg_ip_udp:%%s[%d]", load_network_short(p)); break; case 0x09: sprintf(tmp_address2, "%d.%d.%d.%d", p[0], p[1], p[2], p[3]); if (tmp_address[0] != '\0') { printf(tmp_address, tmp_address2); puts(""); } else { printf("IP: %s\n", tmp_address2); } break; case 0x0f: sprintf(tmp_address, "ncacn_np:%%s[%s]", p); break; case 0x10: printf("ncalrpc[%s]\n", p); break; case 0x11: if (tmp_address[0] != '\0') { printf(tmp_address, p); puts(""); } else { printf("NetBIOS: %s\n", p); } break; case 0x1f: sprintf(tmp_address, "ncacn_http:%%s[%d]", load_network_short(p)); break; default: printf("unknown address type 0x%02x (floor %d, %d bytes)\n", address_type, floor, tint); } } p += tint; } if ((entry_handle->uuid.time_low == 0) && (entry_handle->uuid.time_mid == 0) && (entry_handle->uuid.time_hi_and_version == 0) && (entry_handle->uuid.clock_seq_hi_and_reserved == 0) && (entry_handle->uuid.clock_seq_low == 0) && memcmp(entry_handle->uuid.node, "\0\0\0\0\0\0", 6) == 0) { return 0; } return 1; } int main(int argc, char *argv[]) { int fd; int morestuff = 1; char buffer[5000]; struct lookup_handle_t entry_handle; printf("DCE-RPC tester.\n"); if (argc<2) usage(); fd = tcpconnect(argv[1], DCEPORT); if (fd == -1) { printf("Was not able to connect to %s\n", argv[1]); exit(1); } printf("TcpConnected\n"); dce_enum_bind(fd); read_dce_pdu(fd, buffer); memset(&entry_handle, 0, sizeof(entry_handle)); while (morestuff) { dce_enum_get_next(fd, &entry_handle); read_dce_pdu(fd, buffer); morestuff = dce_parse_enum_response(buffer, &entry_handle); } printf("\nDone\n"); return 1; } dcetest/Makefile0100644000000000000000000000045207340272710012653 0ustar rootroot.SUFFIXES: .a .o .c CC = gcc CFLAGS = -Wall -funsigned-char -c -fPIC -ggdb BINS = dcetest ALL = $(BINS) DCE_OBJS = dcetest.o tcpstuff.o dcetest: $(DCE_OBJS) $(CC) -o dcetest $(DCE_OBJS) clean: rm -f *~ *.bak rm -f include/*~ include/*.bak rm -f *.o rm -f dcetest dcetest/gpl.txt0100644000000000000000000004313107340272115012536 0ustar rootroot GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. dcetest/tcpstuff.c0100644000000000000000000001134307340271504013216 0ustar rootroot/*this file contains all the stuff that allows us to connect and listen and stuff for TCP*/ /*here we include all sorts of headers*/ #include "tcpstuff.h" //#include "aes.h" /*needed for debugging*/ //#include "hdebug.h" #define hdebug(s) #include /*for all sorts of stuff*/ #include /* ** getHostAddress ** ** Translate a hostname or numeric IP address and store the result in addrP. ** ** Return 1 on success, 0 on failure. */ int getHostAddress(const char *host, struct sockaddr_in *addrP) { struct hostent *entry = NULL; if ((entry = gethostbyname(host)) == NULL) { if ((addrP->sin_addr.s_addr = htonl(inet_addr(host))) == 0xffffffff) { return 0; } } else { memcpy(&(addrP->sin_addr), entry->h_addr, entry->h_length); } return 1; } int tcpconnect(const char * host, const unsigned short port ) { int sfd = -1; struct sockaddr_in addr; struct linger lingerVal; /* Translate hostname from DNS or IP-address form */ memset(&addr, 0, sizeof(addr)); if (!getHostAddress(host, &addr)) { hdebug("can't resolve host or address.\n"); return -1; } addr.sin_family = AF_INET; addr.sin_port = ntohs(port); if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { hdebug("Could not create socket!\n"); return -1; } /* Set the "don't linger on close" option */ lingerVal.l_onoff = 0; lingerVal.l_linger = 0; if (setsockopt(sfd, SOL_SOCKET, SO_LINGER, (char *)&lingerVal, sizeof(lingerVal)) < 0) { hdebug("Failed to set SO_LINGER option on socket!\n"); } /* Now connect! */ if (connect(sfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { close(sfd); return -1; } return sfd; } int write_data(int fd,uint32 size, unsigned char *inbuffer) { uint32 left; unsigned char *p; int i; unsigned char *buffer; /*we don't want to use the inbuffer because we change it*/ buffer=malloc(size); memset(buffer,0x00,size); memcpy(buffer,inbuffer,size); /*printf("Write_data(size=%d)\n",size);*/ left=size; p=buffer; do { i=write(fd,p,left); /*some error checking...*/ if (i==-1) { hdebug("Could not write to socket while trying to write_data!\n"); return 0; /*failure*/ } left-=i; p+=i; } while (left>0); return 1; /*success*/ } int write_uint32(int fd,uint32 data) { data=htonl(data); if (write_data(fd,4,(char*)&data)) return 1; else return 0; } int read_data(int fd, uint32 size, unsigned char *buffer) { uint32 left; unsigned char *p; int i; memset(buffer,0x00,size); /*printf("read_data(size=%d)\n",size);*/ left=size; p=buffer; do { i=read(fd,p,left); if (i==0 && errno==EINTR) continue; if (i==0 && errno==EAGAIN) continue; /*some error checking...*/ if (i<=0 ) /*if 0, then we also need to exit*/ { hdebug("Could not read from socket while trying to read_data!\n"); /*this means the connection was closed!*/ hdebug("Connection closed!\n"); exit(0); } left-=i; p+=i; } while (left>0); return 1; /*success*/ } int read_uint32(int fd,uint32 *result) { unsigned char buff[4]; /*sizeof uint32 is 4 bytes*/ read_data(fd,4,buff); memcpy(result,(unsigned char *)buff,4); *result=ntohl(*result); /*here we handle endianness*/ return 1; } int make_tcp_listener(unsigned short localport, int *fd) { int sfd = -1; struct sockaddr_in addr; int addrLen = sizeof(addr); /* Create the socket */ if ((sfd = socket(AF_INET, (SOCK_STREAM), 0)) < 0) { hdebug("can't create listener socket\n"); return 0; } memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_addr.s_addr = htonl(INADDR_ANY); addr.sin_port = htons(localport); if (bind(sfd, (struct sockaddr *)&addr, addrLen) < 0) { hdebug("listener bind failed\n"); return 0; } #define MAX_LISTEN 5 if (listen(sfd, MAX_LISTEN) < 0) { hdebug("listen failed\n"); return 0; } *fd=sfd; return 1; } /* this function takes in a listenFd and returns an acceptedFd */ int tcp_accept(int listenFd) { int clientFd; struct sockaddr_in clientAddr; int addrLen; struct linger lingerVal; addrLen = sizeof(struct sockaddr_in); if ((clientFd = accept(listenFd, (struct sockaddr *)&clientAddr, &addrLen)) < 0) { /* This is always an error, looping or not */ return -1; } /* Set the "don't linger on close" option */ lingerVal.l_onoff = 0; lingerVal.l_linger = 0; if (setsockopt(clientFd, SOL_SOCKET, SO_LINGER, (char *)&lingerVal, sizeof(lingerVal)) < 0) { hdebug("Warning: failed to set SO_LINGER option on socket\n"); } return(clientFd); } dcetest/tcpstuff.h0100644000000000000000000000214107340271504013217 0ustar rootroot/*tcpstuff.h*/ #include /*for memcpy and such*/ #include #include #include /*for gethostbyname()*/ #include /*htonl()*/ #include /*close*/ #include /*malloc*/ #include /*printf*/ /*other inet_ stuff*/ #include #include #include "portability.h" /*for uint32*/ int getHostAddress(const char *host, struct sockaddr_in *addrP); int tcpconnect(const char * host, const unsigned short port ); /*this actually just calls read_data - but it also does the ntohl()*/ int read_uint32(int fd,uint32 *result); /*write some data to the network. Also does encryption*/ int write_data(int fd,uint32 size, unsigned char *inbuffer); /*reads some data from the network. Also does encryption.*/ int read_data(int fd, uint32 size, unsigned char *buffer); /*makes a listener - returns into fd, 0 if fail, 1 if success*/ int make_tcp_listener(unsigned short localport, int *fd); /*writes a uint32 to the network in network byte order*/ int write_uint32(int fd,uint32 data); int tcp_accept(int listenFd); dcetest/portability.h0100644000000000000000000000147707340271504013736 0ustar rootroot/* portability.h This should handle differences in archetectures and stuff and provide 32 bit unsigned values portably and stuff */ #ifndef PORTABILITY #define PORTABILITY typedef unsigned int uint32; /*used in twofish3.c*/ #define byte(x,n) ((u1byte)((x) >> (8 * n))) #define rotl(x,n) (((x) << ((int)(n))) | ((x) >> (32 - (int)(n)))) #define rotr(x,n) (((x) >> ((int)(n))) | ((x) << (32 - (int)(n)))) #ifndef u1byte typedef unsigned char u1byte; /* an 8 bit unsigned character type */ typedef unsigned short u2byte; /* a 16 bit unsigned integer type */ typedef uint32 u4byte; /* a 32 bit unsigned integer type */ typedef char s1byte; /* an 8 bit signed character type */ typedef short s2byte; /* a 16 bit signed integer type */ typedef long s4byte; /* a 32 bit signed integer type */ #endif #endif dcetest/README0100644000000000000000000000113707356132251012076 0ustar rootrootNew Version! New version with lots of new code from jmccown@trusecure.com, Renaud Deraison and Pasi Eronen (big rewrite of major code blocks - he actually went and read the spec instead of doing everything blind :>) has made dcetest into a decent replacement for rpcdump! Thanks everyone! Oct 1, 2001 Dave Aitel This program is "dcetest" - basically a reproduction of rpcdump from microsoft, but without the use of any dce libraries or API of any sort. It should be fairly easy to use and understand, but if you have any problems, please send them to daitel@atstake.com. August 20th, 2001 Dave Aitel dcetest/CHANGELOG0100644000000000000000000000047707343543131012435 0ustar rootrootThis is the Changelog for dcetest.c V 1.2 jmccown sent in a patch that adds a nice debugging dump (if DEBUG is defined) and properly parses ncan_http and a few other formats I missed the first time around! Also Renaud Deraison sent in some fixes so we properly recognize a few other packet types. Thanks to all! dcetest/out0100644000000000000000000002626607347777217012003 0ustar rootrootDCE-RPC tester. TcpConnected dce_bind, fd=3 uuid=e1af8308-5d1f-11c9-91a4-08002b14a0fa transfer_syntax=8a885d04-1ceb-11c9-9fe8-08002b104860 uuid_string_to_buffer:e1af83085d1f11c991a408002b14a0fa from e1af8308-5d1f-11c9-91a4-08002b14a0fa returning 16 uuid_string_to_buffer:8a885d041ceb11c99fe808002b104860 from 8a885d04-1ceb-11c9-9fe8-08002b104860 returning 16 Response: Annotation= Realtype=0x0000004b UUID: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a Probably version: 0x01 Type: ncacn_ip_udp bound to ip:port 10.25.25.15:[1169] Response: Annotation=NTDS Backup Interface Realtype=0x00000057 UUID: ecec0d70-a603-11d0-96b1-00a0c91ece30 Probably version: 0x01 New and unknown type 0x 57 Response: Annotation=NTDS Restore Interface Realtype=0x00000057 UUID: 16e0cf3a-a604-11d0-96b1-00a0c91ece30 Probably version: 0x01 New and unknown type 0x 57 Response: Annotation=MS NT Directory DRS Interface Realtype=0x00000057 UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 Probably version: 0x04 New and unknown type 0x 57 Response: Annotation=MS NT Directory DRS Interface Realtype=0x00000056 UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 Probably version: 0x04 Type: ncalrpc Servicename [LRPC000000fc.00000001] Response: Annotation=MS NT Directory DRS Interface Realtype=0x0000004b UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 Probably version: 0x04 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1026] Response: Annotation=MS NT Directory DRS Interface Realtype=0x00000049 UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 Probably version: 0x04 New and unknown type 0x 49 Response: Annotation=MS NT Directory DRS Interface Realtype=0x0000004b UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 Probably version: 0x04 Type: ncacn_ip_udp bound to ip:port 10.25.25.15:[1028] Response: Annotation=MS NT Directory DRS Interface Realtype=0x0000004b UUID: e3514235-4b06-11d1-ab04-00c04fc2dcd2 Probably version: 0x04 Type: ncacn_http bound to ip:port 10.25.25.15:[1029] Response: Annotation=MS NT Directory XDS Interface Realtype=0x00000057 UUID: f5cc5a7c-4264-101a-8c59-08002b2f8426 Probably version: 0x15 New and unknown type 0x 57 Response: Annotation=MS NT Directory XDS Interface Realtype=0x00000056 UUID: f5cc5a7c-4264-101a-8c59-08002b2f8426 Probably version: 0x15 Type: ncalrpc Servicename [LRPC000000fc.00000001] Response: Annotation=MS NT Directory XDS Interface Realtype=0x0000004b UUID: f5cc5a7c-4264-101a-8c59-08002b2f8426 Probably version: 0x15 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1026] Response: Annotation=MS NT Directory XDS Interface Realtype=0x00000049 UUID: f5cc5a7c-4264-101a-8c59-08002b2f8426 Probably version: 0x15 New and unknown type 0x 49 Response: Annotation=MS NT Directory XDS Interface Realtype=0x0000004b UUID: f5cc5a7c-4264-101a-8c59-08002b2f8426 Probably version: 0x15 Type: ncacn_ip_udp bound to ip:port 10.25.25.15:[1028] Response: Annotation=MS NT Directory XDS Interface Realtype=0x0000004b UUID: f5cc5a7c-4264-101a-8c59-08002b2f8426 Probably version: 0x15 Type: ncacn_http bound to ip:port 10.25.25.15:[1029] Response: Annotation= Realtype=0x00000057 UUID: 12345678-1234-abcd-ef00-01234567cffb Probably version: 0x01 New and unknown type 0x 57 Response: Annotation= Realtype=0x00000056 UUID: 12345678-1234-abcd-ef00-01234567cffb Probably version: 0x01 Type: ncalrpc Servicename [LRPC000000fc.00000001] Response: Annotation= Realtype=0x0000004b UUID: 12345678-1234-abcd-ef00-01234567cffb Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1026] Response: Annotation= Realtype=0x00000049 UUID: 12345678-1234-abcd-ef00-01234567cffb Probably version: 0x01 New and unknown type 0x 49 Response: Annotation= Realtype=0x0000004b UUID: 12345678-1234-abcd-ef00-01234567cffb Probably version: 0x01 Type: ncacn_ip_udp bound to ip:port 10.25.25.15:[1028] Response: Annotation= Realtype=0x0000004b UUID: 12345678-1234-abcd-ef00-01234567cffb Probably version: 0x01 Type: ncacn_http bound to ip:port 10.25.25.15:[1029] Response: Annotation= Realtype=0x00000056 UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncalrpc Servicename [LRPC000002b4.00000001] Response: Annotation= Realtype=0x0000004b UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1089] Response: Annotation= Realtype=0x00000056 UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncalrpc Servicename [LRPC000002b4.00000001] Response: Annotation= Realtype=0x0000004b UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1089] Response: Annotation= Realtype=0x00000056 UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncalrpc Servicename [LRPC000002b4.00000001] Response: Annotation= Realtype=0x0000004b UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1089] Response: Annotation= Realtype=0x00000056 UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncalrpc Servicename [LRPC000002b4.00000001] Response: Annotation= Realtype=0x0000004b UUID: 906b0ce0-c70b-1067-b317-00dd010662da Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1089] Response: Annotation=Messenger Service Realtype=0x00000047 UUID: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc Probably version: 0x01 Type: ncalrpc Servicename [ntsvcs] Response: Annotation=Messenger Service Realtype=0x00000058 UUID: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc Probably version: 0x01 Type: NCACN_NP Binding: \\MIR[\PIPE\ntsvcs] Response: Annotation=Messenger Service Realtype=0x00000058 UUID: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc Probably version: 0x01 Type: NCACN_NP Binding: \\MIR[\PIPE\scerpc] Response: Annotation=Messenger Service Realtype=0x0000004b UUID: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc Probably version: 0x01 Type: ncacn_ip_udp bound to ip:port 10.25.25.15:[1101] Response: Annotation= Realtype=0x0000004b UUID: 4da1c422-943d-11d1-acae-00c04fc2aa3f Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1140] Response: Annotation=NTDS ISM IP Transport Realtype=0x0000004b UUID: 130ceefb-e466-11d1-b78b-00c04fa32883 Probably version: 0x02 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1133] Response: Annotation= Realtype=0x00000056 UUID: 1ff70682-0a51-30e8-076d-740be8cee98b Probably version: 0x01 Type: ncalrpc Servicename [LRPC00000444.00000001] Response: Annotation= Realtype=0x0000004b UUID: 1ff70682-0a51-30e8-076d-740be8cee98b Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1139] Response: Annotation= Realtype=0x00000056 UUID: 378e52b0-c0a9-11cf-822d-00aa0051e40f Probably version: 0x01 Type: ncalrpc Servicename [LRPC00000444.00000001] Response: Annotation= Realtype=0x0000004b UUID: 378e52b0-c0a9-11cf-822d-00aa0051e40f Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1139] Response: Annotation= Realtype=0x0000004b UUID: 50abc2a4-574d-40b3-9d66-ee4fd5fba076 Probably version: 0x05 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1148] Response: Annotation=NtFrs Service Realtype=0x0000004b UUID: f5cc59b4-4264-101a-8c59-08002b2f8426 Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1151] Response: Annotation=NtFrs Service Realtype=0x0000005e UUID: f5cc59b4-4264-101a-8c59-08002b2f8426 Probably version: 0x01 New and unknown type 0x 5e Response: Annotation=NtFrs API Realtype=0x0000004b UUID: d049b186-814f-11d1-9a3c-00c04fc9b232 Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1151] Response: Annotation=NtFrs API Realtype=0x0000005e UUID: d049b186-814f-11d1-9a3c-00c04fc9b232 Probably version: 0x01 New and unknown type 0x 5e Response: Annotation=PERFMON SERVICE Realtype=0x0000004b UUID: a00c021c-2be2-11d2-b678-0000f87a8f8e Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1151] Response: Annotation=PERFMON SERVICE Realtype=0x0000005e UUID: a00c021c-2be2-11d2-b678-0000f87a8f8e Probably version: 0x01 New and unknown type 0x 5e Response: Annotation= Realtype=0x0000004b UUID: 45f52c28-7f9f-101a-b52b-08002b2efabe Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1153] Response: Annotation= Realtype=0x00000056 UUID: 45f52c28-7f9f-101a-b52b-08002b2efabe Probably version: 0x01 Type: ncalrpc Servicename [LRPC000004b0.00000001] Response: Annotation= Realtype=0x0000005a UUID: 45f52c28-7f9f-101a-b52b-08002b2efabe Probably version: 0x01 Type: NCACN_NP Binding: \\MIR[\pipe\WinsPipe] Response: Annotation= Realtype=0x0000004b UUID: 811109bf-a4e1-11d1-ab54-00a0c91e9b45 Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1153] Response: Annotation= Realtype=0x00000056 UUID: 811109bf-a4e1-11d1-ab54-00a0c91e9b45 Probably version: 0x01 Type: ncalrpc Servicename [LRPC000004b0.00000001] Response: Annotation= Realtype=0x0000005a UUID: 811109bf-a4e1-11d1-ab54-00a0c91e9b45 Probably version: 0x01 Type: NCACN_NP Binding: \\MIR[\pipe\WinsPipe] Response: Annotation= Realtype=0x00000045 UUID: 82ad4280-036b-11cf-972c-00aa006887b0 Probably version: 0x02 Type: ncalrpc Servicename [OLE5] Response: Annotation= Realtype=0x0000004d UUID: 82ad4280-036b-11cf-972c-00aa006887b0 Probably version: 0x02 Type: NCACN_NP Binding: [INETINFO_LPC] Response: Annotation= Realtype=0x0000004b UUID: 82ad4280-036b-11cf-972c-00aa006887b0 Probably version: 0x02 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1154] Response: Annotation= Realtype=0x0000005a UUID: 82ad4280-036b-11cf-972c-00aa006887b0 Probably version: 0x02 Type: NCACN_NP Binding: \\MIR[\PIPE\INETINFO] Response: Annotation= Realtype=0x00000045 UUID: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 Probably version: 0x03 Type: ncalrpc Servicename [OLE5] Response: Annotation= Realtype=0x0000004d UUID: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 Probably version: 0x03 Type: NCACN_NP Binding: [INETINFO_LPC] Response: Annotation= Realtype=0x0000004b UUID: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 Probably version: 0x03 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1154] Response: Annotation= Realtype=0x0000005a UUID: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 Probably version: 0x03 Type: NCACN_NP Binding: \\MIR[\PIPE\INETINFO] Response: Annotation= Realtype=0x0000004c UUID: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 Probably version: 0x03 Type: NCACN_NP Binding: [SMTPSVC_LPC] Response: Annotation= Realtype=0x00000059 UUID: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 Probably version: 0x03 New and unknown type 0x 59 Response: Annotation= Realtype=0x00000045 UUID: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a Probably version: 0x01 Type: ncalrpc Servicename [OLE5] Response: Annotation= Realtype=0x0000004d UUID: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a Probably version: 0x01 Type: NCACN_NP Binding: [INETINFO_LPC] Response: Annotation= Realtype=0x0000004b UUID: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a Probably version: 0x01 Type: ncacn_ip_tcp bound to ip:port 10.25.25.15:[1154] Response: Annotation= Realtype=0x0000005a UUID: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a Probably version: 0x01 Type: NCACN_NP Binding: \\MIR[\PIPE\INETINFO] Response: Annotation= Realtype=0x0000004c UUID: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a Probably version: 0x01 Type: NCACN_NP Binding: [SMTPSVC_LPC] Response: Annotation= Realtype=0x00000059 UUID: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a Probably version: 0x01 New and unknown type 0x 59 Response: We're done! Done dcetest/out.txt0100644000000000000000000005051607350000007012556 0ustar rootrootIfId: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncadg_ip_udp:10.25.25.15[1169] RpcMgmtInqIfIds succeeded Interfaces: 13 00000134-0000-0000-c000-000000000046 v0.0 18f70770-8e64-11cf-9af1-0020af6e72f4 v0.0 00000131-0000-0000-c000-000000000046 v0.0 00000143-0000-0000-c000-000000000046 v0.0 00000132-0000-0000-c000-000000000046 v0.0 70b51430-b6ca-11d0-b9b9-00a0c922e750 v0.0 82ad4280-036b-11cf-972c-00aa006887b0 v2.0 8cfb5d70-31a4-11cf-a7d8-00805f48a135 v3.0 bfa951d1-2f0e-11d3-bfd1-00c04fa3490a v1.0 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 00000001-0000-0000-c000-000000000046 v0.0 b196b284-bab4-101a-b69c-00aa00341d07 v0.0 b196b286-bab4-101a-b69c-00aa00341d07 v0.0 IfId: ecec0d70-a603-11d0-96b1-00a0c91ece30 version 1.0 Annotation: NTDS Backup Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\lsass] RpcMgmtInqIfIds failed: 0x6ba IfId: 16e0cf3a-a604-11d0-96b1-00a0c91ece30 version 1.0 Annotation: NTDS Restore Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\lsass] RpcMgmtInqIfIds failed: 0x6ba IfId: e3514235-4b06-11d1-ab04-00c04fc2dcd2 version 4.0 Annotation: MS NT Directory DRS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\lsass] RpcMgmtInqIfIds failed: 0x6ba IfId: e3514235-4b06-11d1-ab04-00c04fc2dcd2 version 4.0 Annotation: MS NT Directory DRS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[LRPC000000fc.00000001] IfId: e3514235-4b06-11d1-ab04-00c04fc2dcd2 version 4.0 Annotation: MS NT Directory DRS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1026] RpcMgmtInqIfIds succeeded Interfaces: 11 12345778-1234-abcd-ef00-0123456789ab v0.0 c681d488-d850-11d0-8c52-00c04fd90f7e v1.0 3919286a-b10c-11d0-9ba8-00c04fd92ef5 v0.0 12345778-1234-abcd-ef00-0123456789ac v1.0 ecec0d70-a603-11d0-96b1-00a0c91ece30 v1.0 16e0cf3a-a604-11d0-96b1-00a0c91ece30 v1.0 e3514235-4b06-11d1-ab04-00c04fc2dcd2 v4.0 f5cc5a7c-4264-101a-8c59-08002b2f8426 v21.0 12345678-1234-abcd-ef00-01234567cffb v1.0 d335b8f6-cb31-11d0-b0f9-006097ba4e54 v1.5 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 IfId: e3514235-4b06-11d1-ab04-00c04fc2dcd2 version 4.0 Annotation: MS NT Directory DRS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[NTDS_LPC] IfId: e3514235-4b06-11d1-ab04-00c04fc2dcd2 version 4.0 Annotation: MS NT Directory DRS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncadg_ip_udp:10.25.25.15[1028] RpcMgmtInqIfIds succeeded Interfaces: 11 12345778-1234-abcd-ef00-0123456789ab v0.0 c681d488-d850-11d0-8c52-00c04fd90f7e v1.0 3919286a-b10c-11d0-9ba8-00c04fd92ef5 v0.0 12345778-1234-abcd-ef00-0123456789ac v1.0 ecec0d70-a603-11d0-96b1-00a0c91ece30 v1.0 16e0cf3a-a604-11d0-96b1-00a0c91ece30 v1.0 e3514235-4b06-11d1-ab04-00c04fc2dcd2 v4.0 f5cc5a7c-4264-101a-8c59-08002b2f8426 v21.0 12345678-1234-abcd-ef00-01234567cffb v1.0 d335b8f6-cb31-11d0-b0f9-006097ba4e54 v1.5 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 IfId: e3514235-4b06-11d1-ab04-00c04fc2dcd2 version 4.0 Annotation: MS NT Directory DRS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_http:10.25.25.15[1029] RpcMgmtInqIfIds failed: 0x6ba IfId: f5cc5a7c-4264-101a-8c59-08002b2f8426 version 21.0 Annotation: MS NT Directory XDS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\lsass] RpcMgmtInqIfIds failed: 0x6ba IfId: f5cc5a7c-4264-101a-8c59-08002b2f8426 version 21.0 Annotation: MS NT Directory XDS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[LRPC000000fc.00000001] IfId: f5cc5a7c-4264-101a-8c59-08002b2f8426 version 21.0 Annotation: MS NT Directory XDS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1026] RpcMgmtInqIfIds succeeded Interfaces: 11 12345778-1234-abcd-ef00-0123456789ab v0.0 c681d488-d850-11d0-8c52-00c04fd90f7e v1.0 3919286a-b10c-11d0-9ba8-00c04fd92ef5 v0.0 12345778-1234-abcd-ef00-0123456789ac v1.0 ecec0d70-a603-11d0-96b1-00a0c91ece30 v1.0 16e0cf3a-a604-11d0-96b1-00a0c91ece30 v1.0 e3514235-4b06-11d1-ab04-00c04fc2dcd2 v4.0 f5cc5a7c-4264-101a-8c59-08002b2f8426 v21.0 12345678-1234-abcd-ef00-01234567cffb v1.0 d335b8f6-cb31-11d0-b0f9-006097ba4e54 v1.5 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 IfId: f5cc5a7c-4264-101a-8c59-08002b2f8426 version 21.0 Annotation: MS NT Directory XDS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[NTDS_LPC] IfId: f5cc5a7c-4264-101a-8c59-08002b2f8426 version 21.0 Annotation: MS NT Directory XDS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncadg_ip_udp:10.25.25.15[1028] RpcMgmtInqIfIds succeeded Interfaces: 11 12345778-1234-abcd-ef00-0123456789ab v0.0 c681d488-d850-11d0-8c52-00c04fd90f7e v1.0 3919286a-b10c-11d0-9ba8-00c04fd92ef5 v0.0 12345778-1234-abcd-ef00-0123456789ac v1.0 ecec0d70-a603-11d0-96b1-00a0c91ece30 v1.0 16e0cf3a-a604-11d0-96b1-00a0c91ece30 v1.0 e3514235-4b06-11d1-ab04-00c04fc2dcd2 v4.0 f5cc5a7c-4264-101a-8c59-08002b2f8426 v21.0 12345678-1234-abcd-ef00-01234567cffb v1.0 d335b8f6-cb31-11d0-b0f9-006097ba4e54 v1.5 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 IfId: f5cc5a7c-4264-101a-8c59-08002b2f8426 version 21.0 Annotation: MS NT Directory XDS Interface UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_http:10.25.25.15[1029] RpcMgmtInqIfIds failed: 0x6ba IfId: 12345678-1234-abcd-ef00-01234567cffb version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\lsass] RpcMgmtInqIfIds failed: 0x6ba IfId: 12345678-1234-abcd-ef00-01234567cffb version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[LRPC000000fc.00000001] IfId: 12345678-1234-abcd-ef00-01234567cffb version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1026] RpcMgmtInqIfIds succeeded Interfaces: 11 12345778-1234-abcd-ef00-0123456789ab v0.0 c681d488-d850-11d0-8c52-00c04fd90f7e v1.0 3919286a-b10c-11d0-9ba8-00c04fd92ef5 v0.0 12345778-1234-abcd-ef00-0123456789ac v1.0 ecec0d70-a603-11d0-96b1-00a0c91ece30 v1.0 16e0cf3a-a604-11d0-96b1-00a0c91ece30 v1.0 e3514235-4b06-11d1-ab04-00c04fc2dcd2 v4.0 f5cc5a7c-4264-101a-8c59-08002b2f8426 v21.0 12345678-1234-abcd-ef00-01234567cffb v1.0 d335b8f6-cb31-11d0-b0f9-006097ba4e54 v1.5 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 IfId: 12345678-1234-abcd-ef00-01234567cffb version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[NTDS_LPC] IfId: 12345678-1234-abcd-ef00-01234567cffb version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncadg_ip_udp:10.25.25.15[1028] RpcMgmtInqIfIds succeeded Interfaces: 11 12345778-1234-abcd-ef00-0123456789ab v0.0 c681d488-d850-11d0-8c52-00c04fd90f7e v1.0 3919286a-b10c-11d0-9ba8-00c04fd92ef5 v0.0 12345778-1234-abcd-ef00-0123456789ac v1.0 ecec0d70-a603-11d0-96b1-00a0c91ece30 v1.0 16e0cf3a-a604-11d0-96b1-00a0c91ece30 v1.0 e3514235-4b06-11d1-ab04-00c04fc2dcd2 v4.0 f5cc5a7c-4264-101a-8c59-08002b2f8426 v21.0 12345678-1234-abcd-ef00-01234567cffb v1.0 d335b8f6-cb31-11d0-b0f9-006097ba4e54 v1.5 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 IfId: 12345678-1234-abcd-ef00-01234567cffb version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_http:10.25.25.15[1029] RpcMgmtInqIfIds failed: 0x6ba IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 369f33c1-0ee6-4872-9422-da2534b74643 Binding: ncalrpc:[LRPC000002b4.00000001] IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 369f33c1-0ee6-4872-9422-da2534b74643 Binding: ncacn_ip_tcp:10.25.25.15[1089] RpcMgmtInqIfIds failed: 0x6bb IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 67d9136e-b5c6-482e-838e-fbdfaae732b1 Binding: ncalrpc:[LRPC000002b4.00000001] IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 67d9136e-b5c6-482e-838e-fbdfaae732b1 Binding: ncacn_ip_tcp:10.25.25.15[1089] RpcMgmtInqIfIds failed: 0x6bb IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 5df458dc-b46f-4fad-9746-0a2dff857920 Binding: ncalrpc:[LRPC000002b4.00000001] IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 5df458dc-b46f-4fad-9746-0a2dff857920 Binding: ncacn_ip_tcp:10.25.25.15[1089] RpcMgmtInqIfIds failed: 0x6bb IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 2213f264-0230-47a1-be79-d3f575498ffd Binding: ncalrpc:[LRPC000002b4.00000001] IfId: 906b0ce0-c70b-1067-b317-00dd010662da version 1.0 Annotation: UUID: 2213f264-0230-47a1-be79-d3f575498ffd Binding: ncacn_ip_tcp:10.25.25.15[1089] RpcMgmtInqIfIds failed: 0x6bb IfId: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc version 1.0 Annotation: Messenger Service UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[ntsvcs] IfId: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc version 1.0 Annotation: Messenger Service UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\ntsvcs] RpcMgmtInqIfIds failed: 0x6ba IfId: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc version 1.0 Annotation: Messenger Service UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\scerpc] RpcMgmtInqIfIds failed: 0x6ba IfId: 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc version 1.0 Annotation: Messenger Service UUID: 00000000-0000-0000-0000-000000000000 Binding: ncadg_ip_udp:10.25.25.15[1101] RpcMgmtInqIfIds succeeded Interfaces: 18 367abb81-9844-35f1-ad32-98f038001003 v2.0 93149ca2-973b-11d1-8c39-00c04fb984f9 v0.0 82273fdc-e32a-18c3-3f78-827929dc23ea v0.0 65a93890-fab9-43a3-b2a5-1e330ac28f11 v2.0 8d9f4e40-a03d-11ce-8f69-08003e30051b v1.0 4b324fc8-1670-01d3-1278-5a47bf6ee188 v3.0 6bffd098-a112-3610-9833-46c3f87e345a v1.0 17fdd703-1827-4e34-79d4-24a55c53bb37 v1.0 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc v1.0 3dde7c30-165d-11d1-ab8f-00805f14db40 v1.0 8d0ffe72-d252-11d0-bf8f-00c04fd9126b v1.0 c9378ff1-16f7-11d0-a0b2-00aa0061426a v1.0 0d72a7d4-6148-11d1-b4aa-00c04fb66ea0 v1.0 4da1c422-943d-11d1-acae-00c04fc2aa3f v1.0 8fb6d884-2388-11d0-8c35-00c04fda2795 v4.1 6bffd098-a112-3610-9833-012892020162 v0.0 300f3532-38cc-11d0-a3f0-0020af6b0add v1.2 3ba0ffc0-93fc-11d0-a4ec-00a0c9062910 v1.0 IfId: 4da1c422-943d-11d1-acae-00c04fc2aa3f version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1140] RpcMgmtInqIfIds succeeded Interfaces: 18 367abb81-9844-35f1-ad32-98f038001003 v2.0 93149ca2-973b-11d1-8c39-00c04fb984f9 v0.0 82273fdc-e32a-18c3-3f78-827929dc23ea v0.0 65a93890-fab9-43a3-b2a5-1e330ac28f11 v2.0 8d9f4e40-a03d-11ce-8f69-08003e30051b v1.0 4b324fc8-1670-01d3-1278-5a47bf6ee188 v3.0 6bffd098-a112-3610-9833-46c3f87e345a v1.0 17fdd703-1827-4e34-79d4-24a55c53bb37 v1.0 5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc v1.0 3dde7c30-165d-11d1-ab8f-00805f14db40 v1.0 8d0ffe72-d252-11d0-bf8f-00c04fd9126b v1.0 c9378ff1-16f7-11d0-a0b2-00aa0061426a v1.0 0d72a7d4-6148-11d1-b4aa-00c04fb66ea0 v1.0 4da1c422-943d-11d1-acae-00c04fc2aa3f v1.0 8fb6d884-2388-11d0-8c35-00c04fda2795 v4.1 6bffd098-a112-3610-9833-012892020162 v0.0 300f3532-38cc-11d0-a3f0-0020af6b0add v1.2 3ba0ffc0-93fc-11d0-a4ec-00a0c9062910 v1.0 IfId: 130ceefb-e466-11d1-b78b-00c04fa32883 version 2.0 Annotation: NTDS ISM IP Transport UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1133] RpcMgmtInqIfIds succeeded Interfaces: 6 130ceefb-e466-11d1-b78b-00c04fa32883 v2.0 68dcd486-669e-11d1-ab0c-00c04fc2dcd2 v1.0 00000134-0000-0000-c000-000000000046 v0.0 18f70770-8e64-11cf-9af1-0020af6e72f4 v0.0 00000131-0000-0000-c000-000000000046 v0.0 00000143-0000-0000-c000-000000000046 v0.0 IfId: 1ff70682-0a51-30e8-076d-740be8cee98b version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[LRPC00000444.00000001] IfId: 1ff70682-0a51-30e8-076d-740be8cee98b version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1139] RpcMgmtInqIfIds succeeded Interfaces: 2 1ff70682-0a51-30e8-076d-740be8cee98b v1.0 378e52b0-c0a9-11cf-822d-00aa0051e40f v1.0 IfId: 378e52b0-c0a9-11cf-822d-00aa0051e40f version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[LRPC00000444.00000001] IfId: 378e52b0-c0a9-11cf-822d-00aa0051e40f version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1139] RpcMgmtInqIfIds succeeded Interfaces: 2 1ff70682-0a51-30e8-076d-740be8cee98b v1.0 378e52b0-c0a9-11cf-822d-00aa0051e40f v1.0 IfId: 50abc2a4-574d-40b3-9d66-ee4fd5fba076 version 5.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1148] RpcMgmtInqIfIds succeeded Interfaces: 1 50abc2a4-574d-40b3-9d66-ee4fd5fba076 v5.0 IfId: f5cc59b4-4264-101a-8c59-08002b2f8426 version 1.1 Annotation: NtFrs Service UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1151] RpcMgmtInqIfIds succeeded Interfaces: 3 f5cc59b4-4264-101a-8c59-08002b2f8426 v1.1 d049b186-814f-11d1-9a3c-00c04fc9b232 v1.1 a00c021c-2be2-11d2-b678-0000f87a8f8e v1.0 IfId: f5cc59b4-4264-101a-8c59-08002b2f8426 version 1.1 Annotation: NtFrs Service UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\pipe\\000003a4.000] RpcMgmtInqIfIds failed: 0x6ba IfId: d049b186-814f-11d1-9a3c-00c04fc9b232 version 1.1 Annotation: NtFrs API UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1151] RpcMgmtInqIfIds succeeded Interfaces: 3 f5cc59b4-4264-101a-8c59-08002b2f8426 v1.1 d049b186-814f-11d1-9a3c-00c04fc9b232 v1.1 a00c021c-2be2-11d2-b678-0000f87a8f8e v1.0 IfId: d049b186-814f-11d1-9a3c-00c04fc9b232 version 1.1 Annotation: NtFrs API UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\pipe\\000003a4.000] RpcMgmtInqIfIds failed: 0x6ba IfId: a00c021c-2be2-11d2-b678-0000f87a8f8e version 1.0 Annotation: PERFMON SERVICE UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1151] RpcMgmtInqIfIds succeeded Interfaces: 3 f5cc59b4-4264-101a-8c59-08002b2f8426 v1.1 d049b186-814f-11d1-9a3c-00c04fc9b232 v1.1 a00c021c-2be2-11d2-b678-0000f87a8f8e v1.0 IfId: a00c021c-2be2-11d2-b678-0000f87a8f8e version 1.0 Annotation: PERFMON SERVICE UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\pipe\\000003a4.000] RpcMgmtInqIfIds failed: 0x6ba IfId: 45f52c28-7f9f-101a-b52b-08002b2efabe version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1153] RpcMgmtInqIfIds succeeded Interfaces: 2 45f52c28-7f9f-101a-b52b-08002b2efabe v1.0 811109bf-a4e1-11d1-ab54-00a0c91e9b45 v1.0 IfId: 45f52c28-7f9f-101a-b52b-08002b2efabe version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[LRPC000004b0.00000001] IfId: 45f52c28-7f9f-101a-b52b-08002b2efabe version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\pipe\\WinsPipe] RpcMgmtInqIfIds failed: 0x6ba IfId: 811109bf-a4e1-11d1-ab54-00a0c91e9b45 version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1153] RpcMgmtInqIfIds succeeded Interfaces: 2 45f52c28-7f9f-101a-b52b-08002b2efabe v1.0 811109bf-a4e1-11d1-ab54-00a0c91e9b45 v1.0 IfId: 811109bf-a4e1-11d1-ab54-00a0c91e9b45 version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[LRPC000004b0.00000001] IfId: 811109bf-a4e1-11d1-ab54-00a0c91e9b45 version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\pipe\\WinsPipe] RpcMgmtInqIfIds failed: 0x6ba IfId: 82ad4280-036b-11cf-972c-00aa006887b0 version 2.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[OLE5] IfId: 82ad4280-036b-11cf-972c-00aa006887b0 version 2.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[INETINFO_LPC] IfId: 82ad4280-036b-11cf-972c-00aa006887b0 version 2.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1154] RpcMgmtInqIfIds succeeded Interfaces: 13 00000134-0000-0000-c000-000000000046 v0.0 18f70770-8e64-11cf-9af1-0020af6e72f4 v0.0 00000131-0000-0000-c000-000000000046 v0.0 00000143-0000-0000-c000-000000000046 v0.0 00000132-0000-0000-c000-000000000046 v0.0 70b51430-b6ca-11d0-b9b9-00a0c922e750 v0.0 82ad4280-036b-11cf-972c-00aa006887b0 v2.0 8cfb5d70-31a4-11cf-a7d8-00805f48a135 v3.0 bfa951d1-2f0e-11d3-bfd1-00c04fa3490a v1.0 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 00000001-0000-0000-c000-000000000046 v0.0 b196b284-bab4-101a-b69c-00aa00341d07 v0.0 b196b286-bab4-101a-b69c-00aa00341d07 v0.0 IfId: 82ad4280-036b-11cf-972c-00aa006887b0 version 2.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\INETINFO] RpcMgmtInqIfIds failed: 0x6ba IfId: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 version 3.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[OLE5] IfId: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 version 3.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[INETINFO_LPC] IfId: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 version 3.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1154] RpcMgmtInqIfIds succeeded Interfaces: 13 00000134-0000-0000-c000-000000000046 v0.0 18f70770-8e64-11cf-9af1-0020af6e72f4 v0.0 00000131-0000-0000-c000-000000000046 v0.0 00000143-0000-0000-c000-000000000046 v0.0 00000132-0000-0000-c000-000000000046 v0.0 70b51430-b6ca-11d0-b9b9-00a0c922e750 v0.0 82ad4280-036b-11cf-972c-00aa006887b0 v2.0 8cfb5d70-31a4-11cf-a7d8-00805f48a135 v3.0 bfa951d1-2f0e-11d3-bfd1-00c04fa3490a v1.0 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 00000001-0000-0000-c000-000000000046 v0.0 b196b284-bab4-101a-b69c-00aa00341d07 v0.0 b196b286-bab4-101a-b69c-00aa00341d07 v0.0 IfId: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 version 3.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\INETINFO] RpcMgmtInqIfIds failed: 0x6ba IfId: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 version 3.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[SMTPSVC_LPC] IfId: 8cfb5d70-31a4-11cf-a7d8-00805f48a135 version 3.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\SMTPSVC] RpcMgmtInqIfIds failed: 0x6ba IfId: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[OLE5] IfId: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[INETINFO_LPC] IfId: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_ip_tcp:10.25.25.15[1154] RpcMgmtInqIfIds succeeded Interfaces: 13 00000134-0000-0000-c000-000000000046 v0.0 18f70770-8e64-11cf-9af1-0020af6e72f4 v0.0 00000131-0000-0000-c000-000000000046 v0.0 00000143-0000-0000-c000-000000000046 v0.0 00000132-0000-0000-c000-000000000046 v0.0 70b51430-b6ca-11d0-b9b9-00a0c922e750 v0.0 82ad4280-036b-11cf-972c-00aa006887b0 v2.0 8cfb5d70-31a4-11cf-a7d8-00805f48a135 v3.0 bfa951d1-2f0e-11d3-bfd1-00c04fa3490a v1.0 98fe2c90-a542-11d0-a4ef-00a0c9062910 v1.0 00000001-0000-0000-c000-000000000046 v0.0 b196b284-bab4-101a-b69c-00aa00341d07 v0.0 b196b286-bab4-101a-b69c-00aa00341d07 v0.0 IfId: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\INETINFO] RpcMgmtInqIfIds failed: 0x6ba IfId: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncalrpc:[SMTPSVC_LPC] IfId: bfa951d1-2f0e-11d3-bfd1-00c04fa3490a version 1.0 Annotation: UUID: 00000000-0000-0000-0000-000000000000 Binding: ncacn_np:\\\\MIR[\\PIPE\\SMTPSVC] RpcMgmtInqIfIds failed: 0x6ba dcetest/out2.txt0100644000000000000000000004321007350001171012634 0ustar rootrootQuerying Endpoint Mapper Database... 68 registered endpoints found. ProtSeq:ncacn_http Endpoint:1029 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_http:10.25.25.15[1029] UUID:12345678-1234-abcd-ef00-01234567cffb ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_http Endpoint:1029 NetOpt: Annotation:MS NT Directory XDS Interface IsListening:NOT_PINGED StringBinding:ncacn_http:10.25.25.15[1029] UUID:f5cc5a7c-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 21 VersMinor 0 ProtSeq:ncacn_http Endpoint:1029 NetOpt: Annotation:MS NT Directory DRS Interface IsListening:NOT_PINGED StringBinding:ncacn_http:10.25.25.15[1029] UUID:e3514235-4b06-11d1-ab04-00c04fc2dcd2 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 4 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1154 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1154] UUID:bfa951d1-2f0e-11d3-bfd1-00c04fa3490a ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1154 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1154] UUID:8cfb5d70-31a4-11cf-a7d8-00805f48a135 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 3 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1154 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1154] UUID:82ad4280-036b-11cf-972c-00aa006887b0 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 2 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1153 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1153] UUID:811109bf-a4e1-11d1-ab54-00a0c91e9b45 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1153 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1153] UUID:45f52c28-7f9f-101a-b52b-08002b2efabe ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1151 NetOpt: Annotation:PERFMON SERVICE IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1151] UUID:a00c021c-2be2-11d2-b678-0000f87a8f8e ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1151 NetOpt: Annotation:NtFrs API IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1151] UUID:d049b186-814f-11d1-9a3c-00c04fc9b232 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 1 ProtSeq:ncacn_ip_tcp Endpoint:1151 NetOpt: Annotation:NtFrs Service IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1151] UUID:f5cc59b4-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 1 ProtSeq:ncacn_ip_tcp Endpoint:1148 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1148] UUID:50abc2a4-574d-40b3-9d66-ee4fd5fba076 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 5 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1139 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1139] UUID:378e52b0-c0a9-11cf-822d-00aa0051e40f ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1139 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1139] UUID:1ff70682-0a51-30e8-076d-740be8cee98b ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1133 NetOpt: Annotation:NTDS ISM IP Transport IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1133] UUID:130ceefb-e466-11d1-b78b-00c04fa32883 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 2 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1140 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1140] UUID:4da1c422-943d-11d1-acae-00c04fc2aa3f ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1089 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1089] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1089 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1089] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1089 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1089] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1089 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1089] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1026 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1026] UUID:12345678-1234-abcd-ef00-01234567cffb ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1026 NetOpt: Annotation:MS NT Directory XDS Interface IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1026] UUID:f5cc5a7c-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 21 VersMinor 0 ProtSeq:ncacn_ip_tcp Endpoint:1026 NetOpt: Annotation:MS NT Directory DRS Interface IsListening:NOT_PINGED StringBinding:ncacn_ip_tcp:10.25.25.15[1026] UUID:e3514235-4b06-11d1-ab04-00c04fc2dcd2 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 4 VersMinor 0 ProtSeq:ncalrpc Endpoint:SMTPSVC_LPC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[SMTPSVC_LPC] UUID:bfa951d1-2f0e-11d3-bfd1-00c04fa3490a ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:INETINFO_LPC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[INETINFO_LPC] UUID:bfa951d1-2f0e-11d3-bfd1-00c04fa3490a ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:OLE5 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[OLE5] UUID:bfa951d1-2f0e-11d3-bfd1-00c04fa3490a ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:SMTPSVC_LPC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[SMTPSVC_LPC] UUID:8cfb5d70-31a4-11cf-a7d8-00805f48a135 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 3 VersMinor 0 ProtSeq:ncalrpc Endpoint:INETINFO_LPC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[INETINFO_LPC] UUID:8cfb5d70-31a4-11cf-a7d8-00805f48a135 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 3 VersMinor 0 ProtSeq:ncalrpc Endpoint:OLE5 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[OLE5] UUID:8cfb5d70-31a4-11cf-a7d8-00805f48a135 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 3 VersMinor 0 ProtSeq:ncalrpc Endpoint:INETINFO_LPC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[INETINFO_LPC] UUID:82ad4280-036b-11cf-972c-00aa006887b0 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 2 VersMinor 0 ProtSeq:ncalrpc Endpoint:OLE5 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[OLE5] UUID:82ad4280-036b-11cf-972c-00aa006887b0 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 2 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000004b0.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000004b0.00000001] UUID:811109bf-a4e1-11d1-ab54-00a0c91e9b45 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000004b0.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000004b0.00000001] UUID:45f52c28-7f9f-101a-b52b-08002b2efabe ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC00000444.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC00000444.00000001] UUID:378e52b0-c0a9-11cf-822d-00aa0051e40f ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC00000444.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC00000444.00000001] UUID:1ff70682-0a51-30e8-076d-740be8cee98b ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:ntsvcs NetOpt: Annotation:Messenger Service IsListening:NOT_PINGED StringBinding:ncalrpc:[ntsvcs] UUID:5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000002b4.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000002b4.00000001] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000002b4.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000002b4.00000001] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000002b4.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000002b4.00000001] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000002b4.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000002b4.00000001] UUID:906b0ce0-c70b-1067-b317-00dd010662da ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:NTDS_LPC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[NTDS_LPC] UUID:12345678-1234-abcd-ef00-01234567cffb ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000000fc.00000001 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000000fc.00000001] UUID:12345678-1234-abcd-ef00-01234567cffb ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncalrpc Endpoint:NTDS_LPC NetOpt: Annotation:MS NT Directory XDS Interface IsListening:NOT_PINGED StringBinding:ncalrpc:[NTDS_LPC] UUID:f5cc5a7c-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 21 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000000fc.00000001 NetOpt: Annotation:MS NT Directory XDS Interface IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000000fc.00000001] UUID:f5cc5a7c-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 21 VersMinor 0 ProtSeq:ncalrpc Endpoint:NTDS_LPC NetOpt: Annotation:MS NT Directory DRS Interface IsListening:NOT_PINGED StringBinding:ncalrpc:[NTDS_LPC] UUID:e3514235-4b06-11d1-ab04-00c04fc2dcd2 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 4 VersMinor 0 ProtSeq:ncalrpc Endpoint:LRPC000000fc.00000001 NetOpt: Annotation:MS NT Directory DRS Interface IsListening:NOT_PINGED StringBinding:ncalrpc:[LRPC000000fc.00000001] UUID:e3514235-4b06-11d1-ab04-00c04fc2dcd2 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 4 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\SMTPSVC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\SMTPSVC] UUID:bfa951d1-2f0e-11d3-bfd1-00c04fa3490a ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\INETINFO NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\INETINFO] UUID:bfa951d1-2f0e-11d3-bfd1-00c04fa3490a ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\SMTPSVC NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\SMTPSVC] UUID:8cfb5d70-31a4-11cf-a7d8-00805f48a135 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 3 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\INETINFO NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\INETINFO] UUID:8cfb5d70-31a4-11cf-a7d8-00805f48a135 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 3 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\INETINFO NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\INETINFO] UUID:82ad4280-036b-11cf-972c-00aa006887b0 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 2 VersMinor 0 ProtSeq:ncacn_np Endpoint:\pipe\WinsPipe NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\pipe\\WinsPipe] UUID:811109bf-a4e1-11d1-ab54-00a0c91e9b45 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\pipe\WinsPipe NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\pipe\\WinsPipe] UUID:45f52c28-7f9f-101a-b52b-08002b2efabe ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\pipe\000003a4.000 NetOpt: Annotation:PERFMON SERVICE IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\pipe\\000003a4.000] UUID:a00c021c-2be2-11d2-b678-0000f87a8f8e ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\pipe\000003a4.000 NetOpt: Annotation:NtFrs API IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\pipe\\000003a4.000] UUID:d049b186-814f-11d1-9a3c-00c04fc9b232 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 1 ProtSeq:ncacn_np Endpoint:\pipe\000003a4.000 NetOpt: Annotation:NtFrs Service IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\pipe\\000003a4.000] UUID:f5cc59b4-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 1 ProtSeq:ncacn_np Endpoint:\PIPE\scerpc NetOpt: Annotation:Messenger Service IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\scerpc] UUID:5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\ntsvcs NetOpt: Annotation:Messenger Service IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\ntsvcs] UUID:5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\lsass NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\lsass] UUID:12345678-1234-abcd-ef00-01234567cffb ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\lsass NetOpt: Annotation:MS NT Directory XDS Interface IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\lsass] UUID:f5cc5a7c-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 21 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\lsass NetOpt: Annotation:MS NT Directory DRS Interface IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\lsass] UUID:e3514235-4b06-11d1-ab04-00c04fc2dcd2 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 4 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\lsass NetOpt: Annotation:NTDS Restore Interface IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\lsass] UUID:16e0cf3a-a604-11d0-96b1-00a0c91ece30 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncacn_np Endpoint:\PIPE\lsass NetOpt: Annotation:NTDS Backup Interface IsListening:NOT_PINGED StringBinding:ncacn_np:\\\\MIR[\\PIPE\\lsass] UUID:ecec0d70-a603-11d0-96b1-00a0c91ece30 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncadg_ip_udp Endpoint:1101 NetOpt: Annotation:Messenger Service IsListening:NOT_PINGED StringBinding:ncadg_ip_udp:10.25.25.15[1101] UUID:5a7b91f8-ff00-11d0-a9b2-00c04fb6e6fc ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncadg_ip_udp Endpoint:1028 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncadg_ip_udp:10.25.25.15[1028] UUID:12345678-1234-abcd-ef00-01234567cffb ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 ProtSeq:ncadg_ip_udp Endpoint:1028 NetOpt: Annotation:MS NT Directory XDS Interface IsListening:NOT_PINGED StringBinding:ncadg_ip_udp:10.25.25.15[1028] UUID:f5cc5a7c-4264-101a-8c59-08002b2f8426 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 21 VersMinor 0 ProtSeq:ncadg_ip_udp Endpoint:1028 NetOpt: Annotation:MS NT Directory DRS Interface IsListening:NOT_PINGED StringBinding:ncadg_ip_udp:10.25.25.15[1028] UUID:e3514235-4b06-11d1-ab04-00c04fc2dcd2 ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 4 VersMinor 0 ProtSeq:ncadg_ip_udp Endpoint:1169 NetOpt: Annotation: IsListening:NOT_PINGED StringBinding:ncadg_ip_udp:10.25.25.15[1169] UUID:bfa951d1-2f0e-11d3-bfd1-00c04fa3490a ComTimeOutValue:RPC_C_BINDING_MIN_TIMEOUT VersMajor 1 VersMinor 0 C:\Program Files\Resource Kit\rpcdump.exe completed sucessfully after 1 seconds dcetest/dcetest.old10100644000000000000000000004301307343542745013442 0ustar rootroot /*dcetest.c*/ /*dave aitel*/ /* This code under GPL v 2.0 . See gpl.txt for more information. */ #include "tcpstuff.h" /*here are the types of result packets we get back*/ #define IPTYPE 0x4b #define NCACN_NP 0x58 #define NCACN_NP2 0x5F #define NCACN_NP3 0x65 #define NCACN_NP4 0x4C #define NCACN_NP5 0x4D #define NCACN_NP6 0x5A #define NCACN_NP7 0x5B #define NCACN_NP8 0x5C #define NCALRPC 0x47 #define NCALRPC2 0x56 #define NCALRPC3 0x4e #define NCALRPC4 0x45 #define DCEPORT 135 unsigned char buf[5000]; unsigned char keything[16]; #define DPSIZE 16 void dumpit(char * buffer, int length) { int c = 0; int l = 0; char ch; char cbuf[DPSIZE+1]; memset(cbuf,0x00,(DPSIZE+1)); printf ("--dumpit (%u):\n",length); while(1){ /* found the end of a line */ if( c % DPSIZE == 0){ printf (" %s\n %04u ",cbuf,c); memset(cbuf,0x00,(DPSIZE+1)); l=0; } ch = *(buffer+c); printf ("%02X ",ch); if( ch > 32 && ch < 0x7e){ *(cbuf+l) = ch; } else{ *(cbuf+l) = '.'; } c++; l++; if( c > length) break; } /* ok I'm lazy... */ while( l < DPSIZE){ printf(" "); l++; } printf(" %s\n",cbuf); printf ("\n--end dumpit\n"); } int read_buf(int fd) { return read(fd,buf,sizeof(buf)); } void usage() { printf("Usage: dcetest host\n"); printf("Version 1.2 brought to you by Dave Aitel, daitel@atstake.com.\n"); printf("Please e-mail me if you have any questions/comments/etc\n"); printf("No liability is implied or assumed by @stake or Dave Aitel.\n"); printf("Run this program at your own risk.\n"); printf("This program under GPL v 2.0\n"); exit(1); } #define BINDPACKET 0x0b #define REQUESTPACKET 0x00 #define FLAGS 0x03; void intel_order(char * buffer, int length) { char temp[5000]; int i; if (length>sizeof(temp)) { printf("error on intel_order\n"); return; } memcpy(temp,buffer,length); for (i=0; i= '0') && (c <= '9')) b=c-'0'; else if ((c >= 'a') && (c <= 'f')) b=c-'a'+10; else if ((c >= 'A') && (c <= 'F')) b=c-'A'+10; return b; } int hexstring_to_buffer(char * hexstring,char * buffer) { int i; /* printf("hexstring_to_buffer %d = %s\n",strlen(hexstring),hexstring); */ /*for each byte of the buffer*/ for (i=0; i-<2bytes>-<2bytes>-<2bytes>-<6bytes>*/ /*all this stuff is just to get rid of the dashes. Sucks, but sue me.*/ memcpy(tempbuffer,uuid,8); memcpy(tempbuffer+8,uuid+9,4); memcpy(tempbuffer+12,uuid+14,4); memcpy(tempbuffer+16,uuid+19,4); memcpy(tempbuffer+20,uuid+24,12); printf("uuid_string_to_buffer:%s from %s\n",tempbuffer,uuid); err=hexstring_to_buffer(tempbuffer,buffer); if (err) { intel_order(buffer,4); intel_order(buffer+4,2); intel_order(buffer+6,2); /*intel_order(buffer+8,2);*/ /*this doesn't happen eithar for some reason*/ /*for some reason the last 8 bytes are in network byte order.*/ printf("returning %d\n",err); return err; } else { return 0; } } int dce_bind(int fd, char* uuid, char* transfer_syntax) { unsigned char buffer[409600]; unsigned char *frag_lengthp; int frag_length; unsigned char *p; printf("dce_bind, fd=%d uuid=%s transfer_syntax=%s\n",fd,uuid, transfer_syntax); p=buffer; *p++=0x05; /*version*/ *p++=0x00; /*minor version*/ *p++=BINDPACKET; *p++=FLAGS; /*now set Data Rep, whatever that is */ /*set to 0x10000000 */ *p++=0x10; *p++=0x00; *p++=0x00; *p++=0x00; /*now we have 2 bytes of frag length*/ frag_lengthp=buffer+8; /*copy the length of the fragment here later*/ p+=2; /*auth length*/ *p++=0x00; *p++=0x00; /*call ID */ *p++=0x01; *p++=0x00; *p++=0x00; *p++=0x00; /*buffer xmit frag*/ *p++=0xd0; *p++=0x16; /*buffer max recv frag*/ *p++=0xd0; *p++=0x16; /*assoc Group*/ *p++=0x00; *p++=0x00; *p++=0x00; *p++=0x00; /*num ctx items - ethereal incorrect reports this as 1 byte*/ *p++=0x01; *p++=0x00; *p++=0x00; *p++=0x00; /*context ID*/ *p++=0x00; *p++=0x00; /*num trans items*/ *p++=0x01; *p++=0x00; /*Interface UUID*/ p+=uuid_string_to_buffer(p,uuid); *p++=0x03;/*interface version*/ *p++=0x00;/*interface version*/ *p++=0x00;/*interface version*/ *p++=0x00;/*interface version*/ p+=uuid_string_to_buffer(p,transfer_syntax); *p++=0x02;/*syntax version*/ *p++=0x00;/*syntax version*/ *p++=0x00;/*syntax version*/ *p++=0x00;/*syntax version*/ /*printf("bind frag length=%d\n",p-buffer);*/ frag_length=p-buffer; *frag_lengthp++=(unsigned char)(frag_length & 0xff); *frag_lengthp++=(unsigned char)(((frag_length >> 8 )& 0xff00)); write(fd,buffer,frag_length); return 1; } int dce_enum_bind(int fd) { char uuid[100],transfer_syntax[100]; strcpy(uuid,"e1af8308-5d1f-11c9-91a4-08002b14a0fa"); /*appears to work*/ strcpy(transfer_syntax,"8a885d04-1ceb-11c9-9fe8-08002b104860"); /*ditto*/ dce_bind(fd, uuid, transfer_syntax); return 1; } int dce_enum_get(int fd,int callid) { unsigned char buffer[409600]; unsigned char *frag_lengthp; int frag_length; unsigned char *p; int i; memset(buffer,0x00,sizeof(buffer)); p=buffer; *p++=0x05; /*version*/ *p++=0x00; /*minor version*/ *p++=REQUESTPACKET; *p++=FLAGS; /*now set Data Rep, whatever that is */ /*set to 0x10000000 */ *p++=0x10; *p++=0x00; *p++=0x00; *p++=0x00; /*now we have 2 bytes of frag length*/ frag_lengthp=buffer+8; /*copy the length of the fragment here later*/ p+=2; /*auth length*/ *p++=0x00; *p++=0x00; /*call ID */ *p++=(unsigned char) callid; *p++=0x00; *p++=0x00; *p++=0x00; /*alloc hint*/ *p++=0x4c; /*76*/ *p++=0x00; *p++=0x00; *p++=0x00; /*context ID*/ *p++=0x00; *p++=0x00; /*opnum = 2*/ *p++=0x02; *p++=0x00; /*null word...*/ *p++=0x00; *p++=0x00; *p++=0x00; *p++=0x00; /*some other word*/ *p++=0x01; *p++=0x00; *p++=0x00; *p++=0x00; for (i=0; i<16; i++) { *p++=0x00; } /*some other word*/ *p++=0x02; *p++=0x00; *p++=0x00; *p++=0x00; /*not sure what this is*/ for (i=0; i<28; i++) { *p++=0x00; } /*here we copy our "key". It is 16 bytes long. Filled with Nulls until we recieve it from the server from our first request*/ memcpy(p,keything,16); p+=16; /*some other word*/ /*always a one.*/ *p++=0x01; *p++=0x00; *p++=0x00; *p++=0x00; frag_length=p-buffer; *frag_lengthp++=(unsigned char)(frag_length & 0xff); *frag_lengthp++=(unsigned char)(((frag_length >> 8 )& 0xff00)); write(fd,buffer,frag_length); return 1; } int parse_dce_header(unsigned char *buf, unsigned int *fragout) { unsigned char *p; unsigned int fraglength; p=buf; /*BYTE Version Major*/ p++; /*BYTE Version Minor*/ p++; /*BYTE Packet Type: Response=0x02*/ /* printf("Header: Packet Type=%2.2x\n",*p); */ p++; /*BYTE Packet Flags*/ p++; /*IWord Data Rep*/ p+=4; /*IHW Frag Length*/ fraglength=load_long(p); *fragout=fraglength; /*IHW Auth LEngthr*/ /*IWord CAllID*/ return 16; } int dce_parse_enum_response(int fd) { int bufsize; unsigned char *p; int tint; int i; short typefield; short sizefield; char guidstring[500]; /*really about 18*/ char servicename[500]; /*overflow. Deal.*/ char *annotation; unsigned int realtype; unsigned char newguid[16]; unsigned short unknownfield1,unknownfield3,othersizefield; unsigned int unknownfield2; unsigned char unknownfield4; unsigned char unknownfield5[16]; unsigned short port,strlength; unsigned char ipfield[4]; /*4 bytes. Long is defined, but wrong*/ unsigned int fraglength; unsigned char iptype; memset(guidstring,0x00,sizeof(guidstring)); memset(servicename,0x00,sizeof(servicename)); memset(newguid,0x00,sizeof(newguid)); memset(ipfield,0x00,sizeof(ipfield)); printf("\nResponse:\n"); bufsize=read_buf(fd); p=buf; p+=parse_dce_header(buf,&fraglength); if (fraglength==64) { printf("We're done!\n"); return 0; } /*size of something word*/ tint=load_long(buf+16); /*printf("Size of something word = %d,%4x\n",tint,tint);*/ /*skip 2 words*/ tint=load_long(buf+20); /*printf("Unknown word 1=%d\n",tint);*/ tint=load_long(buf+24); /*printf("Unknown word 2=%d\n",tint);*/ memcpy(keything,buf+28,16); /*AFTER KEYTHING*/ p=buf+28+16; /*not sure what these words are yet*/ for (i=0; i<10; i++) { tint=load_long(p); /* printf("Word %d=%8x\n",i,tint);*/ p+=4; } /*word ten is the annotation length. 1 means no annotation. */ /*this includes the trailing 0*/ tint=load_long(p); /* printf("Annotation Length=%d\n",tint);*/ annotation=malloc(tint+5); p+=4; for (i=0; i