Write to file
This commit is contained in:
		@@ -182,10 +182,13 @@ func decryptKeyIV(ed string, privateKey *rsa.PrivateKey) ([]byte, error) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func handleDecrypted(decryptedDataB []byte, uidB []byte){
 | 
					func handleDecrypted(decryptedDataB []byte, uidB []byte){
 | 
				
			||||||
	data, _ := base64.StdEncoding.DecodeString(strings.TrimSpace(string(decryptedDataB)))
 | 
						data, _ := base64.StdEncoding.DecodeString(strings.TrimSpace(string(decryptedDataB)))
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fileType, err := magic.Lookup(data)
 | 
						fileType, err := magic.Lookup(data)
 | 
				
			||||||
    	if err != nil {
 | 
					    	if err != nil {
 | 
				
			||||||
        	if err == magic.ErrUnknown {
 | 
					        	if err == magic.ErrUnknown {
 | 
				
			||||||
	            	fmt.Println("File type is unknown")
 | 
						            	fmt.Println("File type is unknown")
 | 
				
			||||||
 | 
								fileType.Extension = "unk"
 | 
				
			||||||
        	}else{
 | 
					        	}else{
 | 
				
			||||||
        	    	panic(err)
 | 
					        	    	panic(err)
 | 
				
			||||||
        	}
 | 
					        	}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user