mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-03 19:33:23 +08:00 
			
		
		
		
	A simple script that fills up opentracker with some peers, if -DWANT_IP_FROM_QUERY_STRING is specifierd
This commit is contained in:
		
							parent
							
								
									19cc9ba882
								
							
						
					
					
						commit
						c2cbe1dc27
					
				
							
								
								
									
										17
									
								
								tests/testsuite.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/testsuite.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
while true; do
 | 
			
		||||
  request_string="GET /announce?info_hash=\
 | 
			
		||||
%$(printf %02X $(( $RANDOM & 0xff )) )\
 | 
			
		||||
%$(printf %02X $(( $RANDOM & 0xff )) )\
 | 
			
		||||
2345678901234567\
 | 
			
		||||
%$(printf %02X $(( $RANDOM & 0xff )) )\
 | 
			
		||||
%$(printf %02X $(( $RANDOM & 0xff )) )\
 | 
			
		||||
&ip=$(( $RANDOM & 0xff )).17.13.15&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
 | 
			
		||||
 | 
			
		||||
#  echo $request_string
 | 
			
		||||
#  echo
 | 
			
		||||
  echo $request_string | nc 127.0.0.1 6969 >/dev/null
 | 
			
		||||
#  echo
 | 
			
		||||
 | 
			
		||||
done
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user