talimat 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Tanım: Farklı açık kaynaklarından e-posta hesapları ve alt alan adı toplamak için kullanılan araç.
  2. # URL: http://www.edge-security.com/theHarvester.php
  3. # Paketçi: yakar
  4. # Gerekler: python-pip python python-setuptools
  5. # Grup: ağ güvenlik
  6. isim=theharvester
  7. surum=3.0
  8. devir=1
  9. kaynak=(https://github.com/laramies/theHarvester/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
  10. derle() {
  11. cd $SRC/theHarvester-$surum
  12. sed -i 's|env python$|env python2|' theHarvester.py
  13. mkdir -p "$PKG/usr/bin"
  14. mkdir -p "$PKG/usr/share/theharvester"
  15. install -Dm755 *.py "$PKG/usr/share/theharvester"
  16. install -Dm644 -t "$PKG/usr/share/doc/theharvester" changelog.txt
  17. install -Dm644 -t "$PKG/usr/share/licenses/theharvester" COPYING LICENSES
  18. cp --no-preserve=ownership -a discovery lib *.txt \
  19. "$PKG/usr/share/theharvester"
  20. ln -s "/usr/share/theharvester/theHarvester.py" "$PKG/usr/bin/theharvester"
  21. rm -rf "$PKG"/usr/share/doc
  22. # desktop
  23. mkdir -p "$PKG/usr/share/applications/"
  24. cat > $PKG/usr/share/applications/$isim.desktop << BASLA
  25. [Desktop Entry]
  26. Name=theHarvester
  27. Exec=sh -c "$isim;${SHELL:-bash}"
  28. Terminal=true
  29. Icon=$isim
  30. Type=Application
  31. Categories=Network;X-Komutan;
  32. Version=1.0
  33. BASLA
  34. }