add a tool to parse authenticate messages
This commit is contained in:
		
							parent
							
								
									9fe85d7ff4
								
							
						
					
					
						commit
						3cbc1cbcaa
					
				
							
								
								
									
										16
									
								
								utils/decode_auth.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								utils/decode_auth.go
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| package main | ||||
| 
 | ||||
| import ( | ||||
| 	"encoding/base64" | ||||
| 	"fmt" | ||||
| 	"ntlm/messages" | ||||
| ) | ||||
| 
 | ||||
| func main() { | ||||
| 	var data string | ||||
| 	fmt.Println("Paste the base64 encoded Authenticate message:") | ||||
| 	fmt.Scanf("%s", &data) | ||||
| 	authenticateData, _ := base64.StdEncoding.DecodeString(data) | ||||
| 	a, _ := messages.ParseAuthenticateMessage(authenticateData, 2) | ||||
| 	fmt.Printf(a.String()) | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user