猫史档案馆


ddns讨论帖

用户:园丁园丁查看:6 回复:10 评论:6 创建时间:2020-04-27T07:49:33


<!Doctype html>
<html>
<head>
<title>本帖未完工</title>
</head>
<body></body>
</html>


回复

上一页1 页 / 共 1下一页
园丁园丁

t m被换成了喵

点赞0


评论


园丁园丁

404:

  <!DOCTYPE html>   <html lang="zh-cn">   <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <title>404 Not Found </title>   <script src="static/js/all.js"> </script>   </head>   <body style="opacity:0;top:50%">   <div class="xycenter">   <link src=https://static.codemao.cn/FvY4b0jOSf85oPo5szZjhWFwR6pO href=https://box3studio.喵ns.net/devProgress.html>   <h3>ErrorCode:404 </h3>   </div>   <script>   loadEvent=()=>{   $("body").animate({opacity:1,top:'+20px'})   }               </script>   </body>   </html>    

点赞0


评论


园丁园丁

  <!DOCTYPE h喵l>   <h喵l lang="zh-cn">   <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <title>404 Not Found </title>      </head>   <body style="opacity:0;top:50%">   <div class="xycenter">   <link src=https://static.codemao.cn/FvY4b0jOSf85oPo5szZjhWFwR6pO href=https://box3studio.喵ns.net/devProgress.h喵l>   <h3>ErrorCode:404 </h3>   </div>   </body>   </h喵l>    

点赞0


评论


园丁园丁

  <!DOCTYPE h喵l>   <h喵l lang="zh-cn">   <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <title>404 Not Found </title>      </head>   <body style="opacity:0;top:50%">   <div class="xycenter">   <link

rel=" shortcut icon"   type=" image/x-icon"

src=https://static.cod喵/FvY4b0jOSf85oPo5szZjhWFwR6pO href=https://box3studio.ddns.net/devProgress.h喵l>   <h3>ErrorCode:404 </h3>   </div>   </body>   </h喵l>    

点赞0


评论


芜湖咸鱼芜湖咸鱼

什么玩意

点赞0


评论


园丁园丁

云存档编好了

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>请登录 </title>
<style>
label {
display: block;
font: .9rem 'Fira Sans', sans-serif;
}

input[type='submit'],
label {
margin-top: 1rem;
}</style>
</head>
<body>
<form>
<div >
<label for="username">Username:</label>
<input type="text" id="username" name="username">
</div>

<div><div>
<label for="pass">Password (8 characters minimum):</label>
<input type="password" id="pass" name="password"
minlength="8" required></div>
</div>

<input type="submit" value="Sign in">
</form>
<script>
// Example POST method implementation:
document.findElementById('form div').addEventListener('submit',function(){
postData('http://your_server_ip/', {
username: document.findElementById('form div input').value})
.then(
data = function(l){//anonymous function
if(l===document.findElementById('form div div input').value){
console.log('yeah')
}else{
console.log('nope')
}
}(data))
.catch(error = console.error(error))})


function postData(url, data) {
// Default options are marked with *
return fetch(url, {
body: JSON.stringify(data), // must match 'Content-Type' header
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, same-origin, *omit
headers: {
'user-agent': 'Mozilla/4.0 MDN Example',
'content-type': 'application/json'
},
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, cors, *same-origin
redirect: 'follow', // manual, *follow, error
referrer: 'no-referrer', // *client, no-referrer
})
.then(response = response.json()) // parses response to JSON
}</script>
</body>
</html>

点赞0


评论


园丁园丁

import socket as sc

def T喵server(h, p, f, d): '''TODO:T喵socket''' w = sc.socket(sc.AF_INET, sc.SOCK_STREAM) w.bind((h, p)) print('Server at host '+h+' port '+str(p) + ' waiting for clients...'if d else'') w.listen(1) if w.accept(): print('Server at host '+h+' port ' + str(p)+' found clients!'if d else'') whileTrue: c, a喵r = w.accept() # Package(s) size limit:1mB c.sendall(f(c.recv(1048576).decode()).encode()) c.close() else: print('Server at host '+h+' port '+str(p) + ' hasn\'t found clients!Trying again...'if d else'') T喵server(h, p, f) # Trying again...

def T喵client(h, p, f, d): '''TODO:T喵socket''' whileTrue: w = sc.socket(sc.AF_INET, sc.SOCK_STREAM) w.connect((h, p)) print('Client at host '+h+' port '+str(p) + ' waiting for servers...'if d else'') if w: print('Client at host '+h+' port ' + str(p)+' found servers!'if d else'') # Package(s) size limit:1mB w.send(f(w.recv(1048576).decode()).encode()) w.close() else: print('Client at host '+h+' port '+str(p) + ' hasn\'t found servers!Trying again...'if d else'') uc='25139'#means'b3' def data(r): try: withopen('C:\\Users\\Administor\\Desktop\\usrs'+r.username,'r+')as rea: return rea.read() except: withopen('C:\\Users\\Administor\\Desktop\\usrs'+r.username,'w+')as rea: rea.write(r.password) return r.password

T喵server('yourip', uc+'0', data, 1)

点赞0


评论


园丁园丁

<!DOCTYPE h喵l>
<h喵l lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>请登录 </title>
<style>
label {
display: block;
font: .9rem 'Fira Sans', sans-serif;
}

input[type='submit'],
label {
margin-top: 1rem;
}</style>
</head>
<body>
<form>
<div >
<label for="username">Username:</label>
<input type="text" id="username" name="username">
</div>

<div><div>
<label for="pass">Password (8 characters minimum):</label>
<input type="password" id="pass" name="password"
minlength="8" required></div>
</div>

<input type="submit" value="Sign in">
</form>
<script>
// Example POST method implementation:
document.findElementById('form div').a喵EventListener('submit',function(){
postData('http://your_server_ip/', {
username: document.findElementById('form div input').value

password: document.findElementById('form div div input').value

})
.then(
data = function(l){//anonymous function
if(l===document.findElementById('form div div input').value){
window.usrnm=
}else{
document.findElementById('form div div input').value='nope'
}
}(data))
.catch(error = console.error(error))})


function postData(url, data) {
// Default options are marked with *
return fetch(url, {
body: JSON.stringify(data), // must match 'Content-Type' header
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, same-origin, *omit
headers: {
'user-agent': 'Mozilla/4.0 喵N Example',
'content-type': 'application/json'
},
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, cors, *same-origin
redirect: 'follow', // manual, *follow, error
referrer: 'no-referrer', // *client, no-referrer
})
.then(response = response.json()) // parses response to JSON
}</script>
</body>
</h喵l>

点赞0


评论


园丁园丁

import socket as sc

def T喵server(h, p, f, d): 
    '''TODO:T喵socket''' 
    w = sc.socket(sc.AF_INET, sc.SOCK_STREAM) 
    w.bind((h, p)) 
    print('Server at host '+h+' port '+str(p) + ' waiting for clients...'if d else'') 
    w.listen(1) 
    if w.accept(): 
        print('Server at host '+h+' port ' + str(p)+' found clients!'if d else'') 
        while True: 
            c, a喵r = w.accept() 
            # Package(s) size limit:1mB 
            c.sendall(f(c.recv(1048576).decode()).encode()) 
            c.close() 
    else: 
        print('Server at host '+h+' port '+str(p) + ' hasn\'t found clients!Trying again...'if d else'') 
        T喵server(h, p, f) # Trying again...

#def T喵client(h, p, f, d): '''TODO:T喵socket''' whileTrue: w = sc.socket(sc.AF_INET, sc.SOCK_STREAM) w.connect((h, p)) print('Client at host '+h+' port '+str(p) + ' waiting for servers...'if d else'') if w: print('Client at host '+h+' port ' + str(p)+' found servers!'if d else'') # Package(s) size limit:1mB w.send(f(w.recv(1048576).decode()).encode()) w.close() else: print('Client at host '+h+' port '+str(p) + ' hasn\'t found servers!Trying again...'if d else'') 
uc='25139'#means'b3' 
def data(r): 
    with open('C:\\Users\\Administor\\Desktop\\projects'+r.projectname,'w+')as rea:
        rea.write('//版权:'+r.username+'\n')
        rea.write(r.js)
        return '200'
    

T喵server('yourip', uc+'1', data, 1)

project

 

点赞0


评论


园丁园丁

<!DOCTYPE html> <html>     <head>         <meta charset="utf-8">         <title>thing</title>     </head>     <body>         <textarea> Paste JS here         </textarea>         <div><input type='submit'></div> <script> // Example POST method implementation: document.findElementById('body div').a喵EventListener('submit',function(){ postData(' http://your_server_ip/', { username:window.username,js:document.findElementById('body textarea')}) .catch(error = console.error(error))})     function postData(url, data) { // Default options are marked with * return fetch(url, { body: JSON.stringify(data), // must match 'Content-Type' header cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 喵N Example', 'content-type': 'application/json' }, method: 'POST', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) .then(response = response.json()) // parses response to JSON }</script>     </body> </html>  

点赞0


评论