Infomaniak SysAdmin Candidature (NedApcifBosAdAzCiend)

Answers to questions from candiharvest.infomanihack.ch

1. What is the list of ips present in Infomaniak SPF (*) ?

dig TXT infomaniak.com | grep -i SPF
#infomaniak.com.        3600    IN  TXT "v=spf1 include:spf.infomaniak.ch include:_spf.mailrelay.rrpproxy.net -all"
dig TXT spf.infomaniak.com | grep -i SPF
#spf.infomaniak.com.    86400   IN  TXT "v=spf1 ip4:84.16.68.96 ip4:84.16.68.94 include:relay.mail.infomaniak.ch include:app.mail.infomaniak.ch include:newsletter.infomaniak.com -all"
dig TXT _spf.mailrelay.rrpproxy.net
# _spf.mailrelay.rrpproxy.net. 3600 IN  TXT "v=spf1 ip4:109.234.108.151 ip4:109.234.108.152 ip4:109.234.111.22 ~all"
dig TXT relay.mail.infomaniak.ch 
# ip4:45.157.188.8/29 ip4:185.125.25.8/29 ip4:83.166.143.168/29 ip4:84.16.66.168/29 ip6:2001:1600:3:17::/64 ip6:2001:1600:4:17::/64
dig TXT app.mail.infomaniak.ch
# ip4:84.16.68.109 ip4:84.16.68.110 ip4:84.16.68.111 ip4:84.16.68.112 ip4:185.125.25.16/29 ip4:45.157.188.16/29 ip4:84.16.66.176/29 ip4:83.166.143.176/29 ip6:2001:1600:3:17::/64 ip6:2001:1600:4:17::/64
dig TXT newsletter.infomaniak.com
# v=spf1 include:amazonses.com ?all
dig TXT amazonses.com
#amazonses.com.     900 IN  TXT "v=spf1 ip4:199.255.192.0/22 ip4:199.127.232.0/22 ip4:54.240.0.0/18 ip4:69.169.224.0/20 ip4:23.249.208.0/20 ip4:23.251.224.0/19 ip4:76.223.176.0/20 ip4:54.240.64.0/19 ip4:54.240.96.0/19 ip4:52.82.172.0/22 -all"

so the list of IPs are :

IP4:

IP6:

2. DNS on linux system ?

cat /etc/resolv.conf
systemd-resolve --status
nmcli dev show | grep DNS

cat /etc/systemd/resolved.conf
sudo systemctl status systemd-resolved.service

3. abuse address for 185.181.161.0/24 ?

CIDR=185.181.161.0/24 # 185.181.161.0 to 185.181.161.255
xdg-open https://www.abuseipdb.com/check-block/$CIDR
#sudo install whois
whois 185.181.161.1 | grep -i abuse
# Abuse contact for '185.181.161.0 - 185.181.161.255' is '[email protected]'
contact=$(whois 185.181.161.1 | grep abuse-mailbox | sed -e 's/  */ /g' | cut -d' ' -f2) && echo "abuse-address: $contact"

The abuse addres for the Infomaniak Network ~range 185.181.161.0/24 is [email protected]

4. $EDITOR preference : gvim

my editor of choice is gvim

5. get resume

if [ ! -e michel.resume ]; then
  git clone https://ipfs.blockring™.ml/ipns/QmZjRH6Ht4sRGgnvXHYyJAdmi7QoCW2shBXXavWmjzZb8k/michelc/resume-template.git michel.resume
  cd michel.resume
else 
  cd michel.resume
  git pull
fi
bundle install
bundle exec jekyll build

chromium --foreground --headless --disable-gpu --no-margins --print-to-pdf _site/index-en.html
sleep 10;
cp -f output.pdf mgc_resume-en.pdf

stamp=$(date +%b%y | tr '[:upper:]' '[:lower:]')

cp -p mgc_resume-en.pdf ../michel_resume_print.pdf
cp -p mgc_resume-en.pdf mgc_resume_$stamp.pdf

bundle exec jekyll build
qm=$(ipfs add -r _site -Q)
cd ..
echo "<script>location.href='https://ipfs.blockringtm.ml/ipfs/$qm'</script>" > resume-NedApcifBosAdAzCiend.html

sed -i -e "s/candid: .*/candid: NedApcifBosAdAzCiend/" -e "s/qm: .*/qm: $qm/" README.md
pandoc --template=README.md README.md | pandoc -o README.html

#rm -rf michel.resume
  1. uploaded files
kdrive=https://drive.infomaniak.com/app/collaborate/100338/3d62891e-6d35-4d8e-b3e7-39a47b50cf39
#curl -X PUT  -F -d @resume-NedApcifBosAdAzCiend.html
xdg-open $kdrive

files can be found here :

also on gist:a50318fc7d7e43e2abd88bff5aa47d75 or at /ipfs/QmX2VYXHfnMN4cPjEdQsqALqRU51AwxVyERxbWpkmxokHD