This commit is contained in:
Chris Talib 2018-11-04 22:14:49 +01:00
parent b81dadf028
commit fce58501d4
4 changed files with 52 additions and 0 deletions

11
convert.sh Normal file
View file

@ -0,0 +1,11 @@
#/bin/bash
for file in *;
do
base=${file%.*}
if [ ! -f $base.csv ]; then
echo '[!] Doesnt exists... Creating!'
soffice --headless --convert-to csv $base.xlsx;
fi
done
echo '[*] Done!'

25
crawdl.rb Normal file
View file

@ -0,0 +1,25 @@
# frozen_string_literal: true
require 'socket'
require 'OpenURI'
puts 'What host?'
host = gets.chomp
host.to_s
puts 'What port?'
port = gets.chomp
port.to_i
puts 'Path?'
path = gets.chomp
path.to_s
open(host) do |f|
f.each_line { |line| p line }
p f.base_uri
p f.content_type
p f.charset
p f.content_encoding
p f.last_modified
end

12
dl_images.rb Normal file
View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
require 'nokogiri'
require 'open-uri'
puts 'what to crawl'
url = gets.chomp
url = url.open
result = URI.extract(url).select { |a| a[/\.(?:gif|png|jpg|jpeg)\b/] }
cmd "wget #{result}"

4
livehosts.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
nmap $1 -n -sP | grep report | awk '{print $5}'