talimat 890 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Description: SQL enjeksiyon kusurlarını sömürme sürecini otomatikleştirin
  2. # URL: http://sqlmap.org
  3. # Packager: milisarge
  4. # Depends on: python
  5. name=sqlmap
  6. version=git
  7. release=1
  8. source=()
  9. build() {
  10. git clone https://github.com/sqlmapproject/sqlmap.git
  11. cd $name
  12. python2 -m compileall .
  13. python2 -O -m compileall .
  14. install -d "$PKG/etc"
  15. install -d "$PKG/usr/bin"
  16. install -d "$PKG/opt/$name"
  17. install -d "$PKG/usr/share/doc"
  18. mv doc "$PKG/usr/share/doc/$name"
  19. mv sqlmap.conf "$PKG/etc/sqlmap.conf"
  20. ln -sf /etc/sqlmap.conf "$PKG/opt/$name/sqlmap.conf"
  21. cp -R --no-preserve=ownership * "$PKG/opt/$name"
  22. cat > "$PKG/usr/bin/sqlmap" << EOF
  23. #!/bin/sh
  24. cd /opt/$name
  25. python2 sqlmap.py "\$@"
  26. EOF
  27. cat > "$PKG/usr/bin/sqlmapapi" << EOF
  28. #!/bin/sh
  29. cd /opt/$name
  30. python2 sqlmapapi.py "\$@"
  31. EOF
  32. chmod 755 "$PKG/usr/bin/sqlmap"
  33. chmod 755 "$PKG/usr/bin/sqlmapapi"
  34. }