update
This commit is contained in:
		
							parent
							
								
									6aa4b64a5a
								
							
						
					
					
						commit
						0872e2a6a7
					
				
							
								
								
									
										
											BIN
										
									
								
								dns-trace
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										
											BIN
										
									
								
								dns-trace
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										4
									
								
								exec.sh
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										4
									
								
								exec.sh
									
									
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
#!/usr/bin/sh
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
sudo bpftool btf dump file /sys/kernel/btf/vmlinux format c > src/vmlinux.h
 | 
			
		||||
#sudo bpftool btf dump file /sys/kernel/btf/vmlinux format c > src/vmlinux.h
 | 
			
		||||
make clean
 | 
			
		||||
make all && sudo ./dns-trace -i enx98e743c667fc
 | 
			
		||||
make all && sudo ./dns-trace -i wlp0s20f3
 | 
			
		||||
 | 
			
		||||
@ -313,7 +313,7 @@ int handle_event(void *ctx, void *data, size_t data_sz){
 | 
			
		||||
            if (type == 5) { // -> CNAME
 | 
			
		||||
                char cname[size];
 | 
			
		||||
                get_labels(s_event->buf + pos, cname);
 | 
			
		||||
                printf("%s ", cname);
 | 
			
		||||
                printf("%s %d ", cname, ttl);
 | 
			
		||||
            }
 | 
			
		||||
            if (type == 28){ // -> AAAA
 | 
			
		||||
                int p = 0;
 | 
			
		||||
@ -327,6 +327,7 @@ int handle_event(void *ctx, void *data, size_t data_sz){
 | 
			
		||||
                            printf("%x", s_event->buf[pos + p++]);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                printf(" %d ", ttl);
 | 
			
		||||
            }
 | 
			
		||||
            pos += size;
 | 
			
		||||
            printf("\n");
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										149985
									
								
								src/vmlinux.h
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										149985
									
								
								src/vmlinux.h
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user