Rednote
GuidebooksTerminalCode
  • Welcome!
  • Utility
    • General
    • Server
    • Transferring File
      • Main
      • Code
      • Miscellaneous
    • Reverse & Bind Shells
      • Havoc
    • Metasploit
    • Service
      • FTP (21)
      • SSH (22)
      • DNS (53)
      • HTTP/HTTPS (80-443)
      • SMTP (25-465-587)
      • POP3 (110-995)
      • IMAP (143-993)
      • MySQL (3306)
      • MSSQL (1433-2433)
      • SMB (139-445)
      • RDP (3389)
      • WinRM (5985-5986)
      • WMI (135)
      • LLMNR & NBT-NS (5355-137)
      • NFS (111-2049)
      • SNMP (161-162)
      • VNC (5900)
      • Rsync (873)
      • R-Service (512-513-514)
      • IPMI (623)
      • Oracle TNS (1521)
  • Pentesting Process
    • Information Gathering
      • Passive
      • Active
      • OSINT
    • Vulnerability
    • Web Attacks
      • GENERAL
      • Crawling/Spidering & Fuzzing
      • Information Disclosure
      • Command Injection
      • Unrestricted File Upload
      • File Inclusion/Path Traversal
      • Request Smuggling
      • Clickjacking
      • Web Cache Poisoning
      • Web Cache Deception
      • Insecure Deserialization
      • Prototype Pollution
      • OAuth 2.0
      • JWT
      • SQLi
        • sqlmap
      • NoSQLi
      • GraphQL
      • XSS
      • SSRF
      • XXE
      • IDOR
      • API
      • SSTI
      • CSRF
      • CORS
      • AJP
      • SSI
      • ESI
      • XSLT
      • Cloud
      • LLM Prompt Security
    • Software Attacks
      • Binary
      • Shellcode
      • AV Evasion & Obfuscation
    • Network Attacks
      • ARP Poisoning
      • Local DNS Cache Poisoning
      • Baby Local DoS
    • Crypto Attacks
      • Utility
      • RSA
      • DSA/DSS
      • PRNG
        • LGC
        • MT
        • LFSR
    • Misc Attacks
    • Social Engineering
    • Password Cracking
      • Wordlist
      • Offline
      • Online
    • Pivoting & Tunneling
    • Local Enumeration
      • Linux
      • Windows
    • Privilege Escalation
      • Linux
        • Linux Privilege Escalation with Groups
        • Linux Privilege Escalation with Library
      • Windows
        • Windows Privilege Escalation with Groups and Privileges
        • Windows Privilege Escalation with DLL Hijacking
    • Active Directory
      • Enumeration
      • Abuse ACL
      • Extract Hash & Password
      • Pass The Hash
      • Pass The Ticket
      • Overpass the Hash
      • Relay Attack
      • Password Spraying Attack
      • AS-REP Roasting
      • Kerberoasting
      • Silver Ticket
      • Golden Ticket
      • DC Synchronization
      • AD Certificates
      • Attacking Domain Trusts
    • Reports
      • Bug Bounty Report
    • CVE
      • Linux
      • Windows
    • OTHER
      • CMS
        • WordPress
        • Joomla
        • Drupal
      • Tomcat
      • Jenkins
      • Splunk
      • Web Service
      • Navigating Python Objects
      • JavaScript Deobfuscation
  • Extra
    • My Books
    • My Exploits
    • Compiled Binaries
Powered by GitBook
On this page

Was this helpful?

  1. Pentesting Process
  2. OTHER

Web Service

A web service is a server-side program that provides functionality that can be invoked and used at the programming level (interoperable architecture).

Last updated 7 months ago

Was this helpful?

.

Remote Procedure Call (RPC) protocol that uses XML (usually over HTTP) to invoke functionality. Composed of <methodCall>, <methodName> and <params>.

<!-- Content-Type: text/xml -->

<methodCall>
    <methodName>examples.getValue</methodName>
    <params>
       <param>
 	  <value>RandomValue</value>
       </param>
    </params>
 </methodCall>

.

Remote Procedure Call (RPC) protocol using JSON. Composed of method, params, id.

// Content-Type: application/json-rpc

{"method": "sum", "params": {"a":3, "b":4}, "id":0}

.

Simple Object Access Protocol. Messaging protocol that uses XML and provides more functionality than XML-RPC. Composed of <soap:Envelope>, <soap:Header>, <soap:Body> and <soap:Fault>. Of which only Envelope and Body are mandatory.

(Web Services Definition Language) SOAP can optionally also provide a WSDL declaration that specifies how services can be used. Look for them with ?.wsdl, .wsdl, ?.disk, .disk or on : directory service for Public Web Service.

<!-- 
Content-Type: text/xml; charset = utf-8
[ SOAPAction: "OperationName" ] 
-->

<?xml version="1.0"?> 
<soap:Envelope
 xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
 soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
   <soap:Header> ... </soap:Header>
   <soap:Body> 
        ... 
       <soap:Fault> ... </soap:Fault>
   </soap:Body>
</soap:Envelope>

Representational State Transfer. It usually uses XML or JSON and relies on sets or principles to build a Web service. RESTful APIs are usually based on HTTP verbs to determine the actions to be taken.

POST /api/2.2/auth/signin HTTP/1.1

<!-- Content-Type:text/xml -->
<tsRequest>
  <credentials name="A" password="B"> … </credentials>
</tsRequest>
// Content-Type:application/json
{ "credentials": 
    { "name": "A", "password": "B",  …  }
}

Use Wsdler extension of BurpSuite.

.

Information
Information
Information
WSDL
1.1
2.0
UDDI
Information